checking desktop version

This commit is contained in:
Artur
2026-01-26 14:33:34 +03:00
parent 108cfbe826
commit 544a746060

View File

@ -643,7 +643,7 @@ async function registerButtons(window, undefined)
button2.attachOnClick(on_click_ocr);
}
if (editorVersion >= 9002000 && Asc.Editor.getType() === "word")
if (editorVersion >= 9002000 && Asc.Editor.getType() === "word" && AI.getDesktopLocalVersion() >= 9003000)
{
let buttonGS = new Asc.ButtonToolbar(buttonMainToolbar);
buttonGS.text = "Grammar & Spelling";