Skip to content

Commit

Permalink
Fixed the bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
lincanbin committed Jun 15, 2017
1 parent eaa3e4f commit 217c71f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion static/js/default/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ function loadScript(url, callback) {
};
}
script.src = url;
if (document.getElementById(script.id) === null) {
if ($("#" + script.id).length === 0) {
document.getElementsByTagName("head")[0].appendChild(script);
} else {
callback();
Expand Down
2 changes: 1 addition & 1 deletion static/js/mobile/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ function loadScript(url, callback) {
};
}
script.src = url;
if (document.getElementById(script.id) === null) {
if ($("#" + script.id).length === 0) {
document.getElementsByTagName("head")[0].appendChild(script);
} else {
callback();
Expand Down

0 comments on commit 217c71f

Please sign in to comment.