Skip to content

Commit e93ec03

Browse files
AlexeyMatveev686AlexeyMatveev686
AlexeyMatveev686
authored and
AlexeyMatveev686
committed
.
1 parent fd53aed commit e93ec03

File tree

1 file changed

+3
-5
lines changed
  • sdkjs-plugins/content/openai/scripts

1 file changed

+3
-5
lines changed

sdkjs-plugins/content/openai/scripts/code.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -425,18 +425,16 @@
425425
};
426426

427427
window.Asc.plugin.onTranslate = function() {
428-
if (isIE)
429-
return;
430-
431428
if (bCreateLoader)
432429
createLoader();
433430

434431
let elements = document.querySelectorAll('.i18n');
435432
bCreateLoader = true;
436433

437-
elements.forEach(function(element) {
434+
for (let index = 0; index < elements.length; index++) {
435+
let element = elements[index];
438436
element.innerText = getMessage(element.innerText);
439-
})
437+
}
440438
};
441439

442440
window.Asc.plugin.onThemeChanged = function(theme)

0 commit comments

Comments
 (0)