basic functionality, untested.
This commit is contained in:
15
extension/options.js
Normal file
15
extension/options.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/* global document */
|
||||
|
||||
import browser from 'webextension-polyfill'
|
||||
|
||||
document.getElementById('privateKeyInput').addEventListener('input', ev => {
|
||||
browser.storage.local
|
||||
.set({private_key: document.getElementById('privateKeyInput').value})
|
||||
.then(() => {
|
||||
console.log('success')
|
||||
})
|
||||
})
|
||||
|
||||
browser.storage.local.get('private_key').then(results => {
|
||||
document.getElementById('privateKeyInput').value = results.private_key
|
||||
})
|
||||
Reference in New Issue
Block a user