Skip to content

Commit

Permalink
24.8.6 Some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tablacus committed Aug 6, 2024
1 parent 14a9e7f commit 5a66f37
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions Debug/script/consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ if ("undefined" === typeof Promise) {
}
}

if ("undefined" === typeof console) {
console = {
log: function () {
const args = Array.apply(null, arguments);
api.OutputDebugString(args.join("\n") + "\n");
}
}
}

FixScript = RemoveAsync = function (s, a) {
if (a) {
return "(async () => {" + s + "\n})();";
Expand Down
2 changes: 1 addition & 1 deletion Debug/script/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -2651,7 +2651,7 @@ async function AddonsList(xhr2) {
xhr = await xhr2;
}
let xml = await xhr.responseXML;
if (!xml) {
if (!xml && await xhr.get_responseText) {
if (window.DOMParser) {
xml = new DOMParser().parseFromString(await xhr.get_responseText(), "application/xml");
} else {
Expand Down
2 changes: 1 addition & 1 deletion Debug/script/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ g_.Notify = {};

AboutTE = function (n) {
if (n == 0) {
return te.Version < 20240616 ? te.Version : 20240728;
return te.Version < 20240616 ? te.Version : 20240806;
}
if (n == 1) {
const v = AboutTE(0);
Expand Down

0 comments on commit 5a66f37

Please sign in to comment.