diff options
Diffstat (limited to 'ext/js/script/dynamic-loader.js')
-rw-r--r-- | ext/js/script/dynamic-loader.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/js/script/dynamic-loader.js b/ext/js/script/dynamic-loader.js index 0464f151..a2cfb77a 100644 --- a/ext/js/script/dynamic-loader.js +++ b/ext/js/script/dynamic-loader.js @@ -15,10 +15,6 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -/* global - * api - */ - const dynamicLoader = (() => { const injectedStylesheets = new Map(); const injectedStylesheetsWithParent = new WeakMap(); @@ -61,7 +57,7 @@ const dynamicLoader = (() => { } if (type === 'file-content') { - value = await api.getStylesheetContent(value); + value = await yomichan.api.getStylesheetContent(value); type = 'code'; useWebExtensionApi = false; } @@ -73,7 +69,7 @@ const dynamicLoader = (() => { } setInjectedStylesheet(id, parentNode, null); - await api.injectStylesheet(type, value); + await yomichan.api.injectStylesheet(type, value); return null; } |