chore: rename miniplayer.json to miniplayer.ui
This commit is contained in:
parent
62b0507a1b
commit
49bc681cf7
@ -139,8 +139,8 @@ struct BricksAppView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func loadJSONString() -> String {
|
private func loadJSONString() -> String {
|
||||||
// 从 Resources 加载 miniplayer.json
|
// 从 Resources 加载 miniplayer.ui
|
||||||
if let url = Bundle.module.url(forResource: "miniplayer", withExtension: "json"),
|
if let url = Bundle.module.url(forResource: "miniplayer", withExtension: "ui"),
|
||||||
let data = try? Data(contentsOf: url),
|
let data = try? Data(contentsOf: url),
|
||||||
let str = String(data: data, encoding: .utf8) {
|
let str = String(data: data, encoding: .utf8) {
|
||||||
return str
|
return str
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user