summaryrefslogtreecommitdiff
path: root/ext/js/app/frontend.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/app/frontend.js')
-rw-r--r--ext/js/app/frontend.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/app/frontend.js b/ext/js/app/frontend.js
index 8c11775a..c8b63813 100644
--- a/ext/js/app/frontend.js
+++ b/ext/js/app/frontend.js
@@ -964,7 +964,7 @@ export class Frontend {
_prepareSiteSpecific() {
switch (location.hostname.toLowerCase()) {
case 'docs.google.com':
- this._prepareGoogleDocs();
+ this._prepareGoogleDocsWrapper();
break;
}
}
@@ -972,18 +972,18 @@ export class Frontend {
/**
* @returns {Promise<void>}
*/
- async _prepareGoogleDocs() {
+ async _prepareGoogleDocsWrapper() {
if (typeof GoogleDocsUtil !== 'undefined') { return; }
await yomitan.api.loadExtensionScripts([
'/js/accessibility/google-docs-util.js'
]);
- this._prepareGoogleDocs2();
+ this._prepareGoogleDocs();
}
/**
* @returns {Promise<void>}
*/
- async _prepareGoogleDocs2() {
+ async _prepareGoogleDocs() {
if (typeof GoogleDocsUtil === 'undefined') { return; }
DocumentUtil.registerGetRangeFromPointHandler(GoogleDocsUtil.getRangeFromPoint.bind(GoogleDocsUtil));
}