From 0bcadfc32c2aef22f550b09dbd858c96c8562127 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Thu, 26 Aug 2021 14:23:24 +0300 Subject: [PATCH] [DE PE SSE mobile] Deleted unnecessary --- apps/documenteditor/mobile/src/store/textSettings.js | 8 -------- apps/presentationeditor/mobile/src/store/textSettings.js | 8 -------- apps/spreadsheeteditor/mobile/src/store/textSettings.js | 8 -------- 3 files changed, 24 deletions(-) diff --git a/apps/documenteditor/mobile/src/store/textSettings.js b/apps/documenteditor/mobile/src/store/textSettings.js index c948bca09..e6a64506c 100644 --- a/apps/documenteditor/mobile/src/store/textSettings.js +++ b/apps/documenteditor/mobile/src/store/textSettings.js @@ -115,14 +115,6 @@ export class storeTextSettings { const applicationPixelRatio = Common.Utils.applicationPixelRatio(); - if (typeof window['AscDesktopEditor'] === 'object') { - this.thumbs[0].path = window['AscDesktopEditor'].getFontsSprite(''); - this.thumbs[1].path = window['AscDesktopEditor'].getFontsSprite('@1.25x'); - this.thumbs[2].path = window['AscDesktopEditor'].getFontsSprite('@1.5x'); - this.thumbs[3].path = window['AscDesktopEditor'].getFontsSprite('@1.75x'); - this.thumbs[4].path = window['AscDesktopEditor'].getFontsSprite('@2x'); - } - let bestDistance = Math.abs(applicationPixelRatio - this.thumbs[0].ratio); let currentDistance = 0; diff --git a/apps/presentationeditor/mobile/src/store/textSettings.js b/apps/presentationeditor/mobile/src/store/textSettings.js index 81a5e2edb..e82800153 100644 --- a/apps/presentationeditor/mobile/src/store/textSettings.js +++ b/apps/presentationeditor/mobile/src/store/textSettings.js @@ -116,14 +116,6 @@ export class storeTextSettings { const applicationPixelRatio = Common.Utils.applicationPixelRatio(); - if (typeof window['AscDesktopEditor'] === 'object') { - this.thumbs[0].path = window['AscDesktopEditor'].getFontsSprite(''); - this.thumbs[1].path = window['AscDesktopEditor'].getFontsSprite('@1.25x'); - this.thumbs[2].path = window['AscDesktopEditor'].getFontsSprite('@1.5x'); - this.thumbs[3].path = window['AscDesktopEditor'].getFontsSprite('@1.75x'); - this.thumbs[4].path = window['AscDesktopEditor'].getFontsSprite('@2x'); - } - let bestDistance = Math.abs(applicationPixelRatio - this.thumbs[0].ratio); let currentDistance = 0; diff --git a/apps/spreadsheeteditor/mobile/src/store/textSettings.js b/apps/spreadsheeteditor/mobile/src/store/textSettings.js index 0cf134fdd..fb43012ce 100644 --- a/apps/spreadsheeteditor/mobile/src/store/textSettings.js +++ b/apps/spreadsheeteditor/mobile/src/store/textSettings.js @@ -119,14 +119,6 @@ export class storeTextSettings { const applicationPixelRatio = Common.Utils.applicationPixelRatio(); - if (typeof window['AscDesktopEditor'] === 'object') { - this.thumbs[0].path = window['AscDesktopEditor'].getFontsSprite(''); - this.thumbs[1].path = window['AscDesktopEditor'].getFontsSprite('@1.25x'); - this.thumbs[2].path = window['AscDesktopEditor'].getFontsSprite('@1.5x'); - this.thumbs[3].path = window['AscDesktopEditor'].getFontsSprite('@1.75x'); - this.thumbs[4].path = window['AscDesktopEditor'].getFontsSprite('@2x'); - } - let bestDistance = Math.abs(applicationPixelRatio - this.thumbs[0].ratio); let currentDistance = 0;