Skip to content

Commit

Permalink
修复部分值因没有被定义而报错
Browse files Browse the repository at this point in the history
  • Loading branch information
zhheo committed Jun 20, 2024
1 parent 4df9693 commit 68992dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions js/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
console.log("\n %c HeoMusic 开源静态音乐播放器 v1.5 %c https://github.com/zhheo/HeoMusic \n", "color: #fadfa3; background: #030307; padding:5px 0;", "background: #fadfa3; padding:5px 0;")
var local = false;

if (typeof userId === 'undefined') {
var userId = "8152976493"; // 替换为实际的默认值
}
if (typeof userServer === 'undefined') {
var userServer = "netease"; // 替换为实际的默认值
}
if (typeof userType === 'undefined') {
var userType = "playlist"; // 替换为实际的默认值
}

if (typeof remoteMusic !== 'undefined' && remoteMusic) {
fetch(remoteMusic)
.then(response => response.json())
Expand Down
2 changes: 1 addition & 1 deletion js/main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 68992dc

Please sign in to comment.