diff options
author | Darius Jahandarie <djahandarie@gmail.com> | 2023-11-10 00:05:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-10 00:05:01 +0000 |
commit | 6b51d59fce9c56f3b1e069f620c5064f8cb51406 (patch) | |
tree | 839f379feabe210433278974a975297cec46a97e /ext/js | |
parent | b7d3cef68bc509d0dc907b380f2d1d665aa19149 (diff) | |
parent | 2cd7b14333a727418584d95c71ee6cb10b9a4197 (diff) |
Merge pull request #310 from themoeway/playwright-esm
Change playwright scripts to use ESM
Diffstat (limited to 'ext/js')
-rw-r--r-- | ext/js/display/display-audio.js | 5 | ||||
-rw-r--r-- | ext/js/display/popup-main.js | 11 | ||||
-rw-r--r-- | ext/js/pages/settings/dictionary-controller.js | 4 | ||||
-rw-r--r-- | ext/js/pages/settings/popup-preview-frame-main.js | 6 | ||||
-rw-r--r-- | ext/js/templates/sandbox/template-renderer-media-provider.js | 4 |
5 files changed, 1 insertions, 29 deletions
diff --git a/ext/js/display/display-audio.js b/ext/js/display/display-audio.js index 6ab5773f..b829dd1a 100644 --- a/ext/js/display/display-audio.js +++ b/ext/js/display/display-audio.js @@ -21,11 +21,6 @@ import {PopupMenu} from '../dom/popup-menu.js'; import {AudioSystem} from '../media/audio-system.js'; import {yomichan} from '../yomichan.js'; -/* global - * AudioSystem - * PopupMenu - */ - export class DisplayAudio { constructor(display) { this._display = display; diff --git a/ext/js/display/popup-main.js b/ext/js/display/popup-main.js index 0599b736..b82458fa 100644 --- a/ext/js/display/popup-main.js +++ b/ext/js/display/popup-main.js @@ -27,17 +27,6 @@ import {DisplayProfileSelection} from './display-profile-selection.js'; import {DisplayResizer} from './display-resizer.js'; import {Display} from './display.js'; -/* global - * Display - * DisplayAnki - * DisplayAudio - * DisplayProfileSelection - * DisplayResizer - * DocumentFocusController - * HotkeyHandler - * JapaneseUtil - */ - (async () => { try { const documentFocusController = new DocumentFocusController(); diff --git a/ext/js/pages/settings/dictionary-controller.js b/ext/js/pages/settings/dictionary-controller.js index a9403e39..05f4f396 100644 --- a/ext/js/pages/settings/dictionary-controller.js +++ b/ext/js/pages/settings/dictionary-controller.js @@ -20,10 +20,6 @@ import {EventListenerCollection, log} from '../../core.js'; import {DictionaryWorker} from '../../language/dictionary-worker.js'; import {yomichan} from '../../yomichan.js'; -/* global - * DictionaryWorker - */ - class DictionaryEntry { constructor(dictionaryController, fragment, index, dictionaryInfo) { this._dictionaryController = dictionaryController; diff --git a/ext/js/pages/settings/popup-preview-frame-main.js b/ext/js/pages/settings/popup-preview-frame-main.js index d10910fc..0b69fea0 100644 --- a/ext/js/pages/settings/popup-preview-frame-main.js +++ b/ext/js/pages/settings/popup-preview-frame-main.js @@ -22,12 +22,6 @@ import {HotkeyHandler} from '../../input/hotkey-handler.js'; import {yomichan} from '../../yomichan.js'; import {PopupPreviewFrame} from './popup-preview-frame.js'; -/* global - * HotkeyHandler - * PopupFactory - * PopupPreviewFrame - */ - (async () => { try { await yomichan.prepare(); diff --git a/ext/js/templates/sandbox/template-renderer-media-provider.js b/ext/js/templates/sandbox/template-renderer-media-provider.js index 9d77dd1f..33ddec21 100644 --- a/ext/js/templates/sandbox/template-renderer-media-provider.js +++ b/ext/js/templates/sandbox/template-renderer-media-provider.js @@ -16,9 +16,7 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -/* global - * Handlebars - */ +import {Handlebars} from '../../../lib/handlebars.js'; export class TemplateRendererMediaProvider { constructor() { |