summaryrefslogtreecommitdiff
path: root/ext/bg/js/popup.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/popup.js')
-rw-r--r--ext/bg/js/popup.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/bg/js/popup.js b/ext/bg/js/popup.js
index 4f6942f0..0d1fb04e 100644
--- a/ext/bg/js/popup.js
+++ b/ext/bg/js/popup.js
@@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+
$(document).ready(() => {
$('#open-search').click(() => window.open(chrome.extension.getURL('bg/search.html')));
$('#open-options').click(() => chrome.runtime.openOptionsPage());
@@ -27,7 +28,7 @@ $(document).ready(() => {
toggle.bootstrapToggle();
toggle.change(() => {
options.general.enable = toggle.prop('checked');
- optionsSave(options).then(() => getYomichan().setOptions(options));
+ optionsSave(options).then(() => instYomi().setOptions(options));
});
});
});