aboutsummaryrefslogtreecommitdiff
path: root/src/settings
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings')
-rw-r--r--src/settings/index.js22
-rw-r--r--src/settings/settings.html18
-rw-r--r--src/settings/settings.scss8
3 files changed, 0 insertions, 48 deletions
diff --git a/src/settings/index.js b/src/settings/index.js
deleted file mode 100644
index 2ed060c..0000000
--- a/src/settings/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import './settings.scss';
-import messages from '../messages';
-
-document.addEventListener('DOMContentLoaded', () => {
- let form = document.getElementById('vimvixen-settings-form');
- form.addEventListener('submit', (e) => {
- e.preventDefault();
- browser.storage.local.set({
- settings: {
- json: e.target.elements['plain-json'].value
- }
- }).then(() => {
- return browser.runtime.sendMessage({
- type: messages.SETTINGS_RELOAD
- });
- });
- });
-
- browser.storage.local.get('settings').then((value) => {
- form.elements['plain-json'].value = value.settings.json;
- }, console.error);
-});
diff --git a/src/settings/settings.html b/src/settings/settings.html
deleted file mode 100644
index 99d6c6b..0000000
--- a/src/settings/settings.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset='utf-8'>
- </head>
- <body>
- <h1>Configure</h1>
-
- <h2>Home page</h2>
- <form id='vimvixen-settings-form' class='vimvixen-settings-form'>
- <label for='load-from-json'>Load from JSON:</label>
- <textarea name='plain-json' spellcheck='false'></textarea>
-
- <button type='submit'>Save</button>
- </form>
- <script src='settings.js'></script>
- </body>
-</html>
diff --git a/src/settings/settings.scss b/src/settings/settings.scss
deleted file mode 100644
index 5707c8a..0000000
--- a/src/settings/settings.scss
+++ /dev/null
@@ -1,8 +0,0 @@
-.vimvixen-settings-form {
- textarea[name=plain-json] {
- font-family: monospace;
- width: 100%;
- min-height: 64ex;
- resize: vertical;
- }
-}