Skip to content

Commit

Permalink
fix: Console
Browse files Browse the repository at this point in the history
Update Microsoft.Translate.dev.js
Update Microsoft.Translate.js
  • Loading branch information
VirgilClyne committed Dec 2, 2024
1 parent 595cfe8 commit 29bef54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Microsoft.Translate.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const $request = {
_.set(Settings, "Microsoft.Version", "Azure");
_.set(Settings, "Microsoft.Mode", "Token");
_.set(Settings, "Microsoft.Token", $response?.body);
lConsole.info(`Settings: ${JSON.stringify(Settings)}`);
Console.debug(`Settings.Microsoft.Token: ${JSON.stringify(Settings.Microsoft.Token)}`);
// 写入缓存
Storage.setItem("@DualSubs.Translate.Settings.Vendor", Settings.Vendor);
Storage.setItem("@DualSubs.API.Settings.Microsoft.Version", Settings.Microsoft.Version);
Expand Down
3 changes: 2 additions & 1 deletion src/Microsoft.Translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const $request = {
Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
},
};
Console.debug = () => {};
/***************** Processing *****************/
(async () => {
/**
Expand All @@ -20,7 +21,7 @@ const $request = {
_.set(Settings, "Microsoft.Version", "Azure");
_.set(Settings, "Microsoft.Mode", "Token");
_.set(Settings, "Microsoft.Token", $response?.body);
Console.info(`Settings: ${JSON.stringify(Settings)}`);
Console.debug(`Settings.Microsoft.Token: ${JSON.stringify(Settings.Microsoft.Token)}`);
// 写入缓存
Storage.setItem("@DualSubs.Translate.Settings.Vendor", Settings.Vendor);
Storage.setItem("@DualSubs.API.Settings.Microsoft.Version", Settings.Microsoft.Version);
Expand Down

0 comments on commit 29bef54

Please sign in to comment.