aboutsummaryrefslogtreecommitdiff
path: root/src/settings/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/index.js')
-rw-r--r--src/settings/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings/index.js b/src/settings/index.js
index e075385..2ed060c 100644
--- a/src/settings/index.js
+++ b/src/settings/index.js
@@ -1,4 +1,5 @@
import './settings.scss';
+import messages from '../messages';
document.addEventListener('DOMContentLoaded', () => {
let form = document.getElementById('vimvixen-settings-form');
@@ -8,6 +9,10 @@ document.addEventListener('DOMContentLoaded', () => {
settings: {
json: e.target.elements['plain-json'].value
}
+ }).then(() => {
+ return browser.runtime.sendMessage({
+ type: messages.SETTINGS_RELOAD
+ });
});
});