From 286534e648af350d24fbf3c7892a7ec81aaeb4bd Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 14 Feb 2021 15:53:35 -0500 Subject: Move api to yomichan object (#1392) * Move cross frame API from API to Yomichan * Add API instance to Yomichan * Move api global to yomichan.api * Pass yomichan to API * Remove IIFE --- ext/js/settings/profile-controller.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/js/settings/profile-controller.js') diff --git a/ext/js/settings/profile-controller.js b/ext/js/settings/profile-controller.js index 914fc679..3883e80a 100644 --- a/ext/js/settings/profile-controller.js +++ b/ext/js/settings/profile-controller.js @@ -17,7 +17,6 @@ /* global * ProfileConditionsUI - * api */ class ProfileController { @@ -58,7 +57,7 @@ class ProfileController { } async prepare() { - const {platform: {os}} = await api.getEnvironmentInfo(); + const {platform: {os}} = await yomichan.api.getEnvironmentInfo(); this._profileConditionsUI.os = os; this._profileActiveSelect = document.querySelector('#profile-active-select'); -- cgit v1.2.3