basic functionality, untested.

This commit is contained in:
fiatjaf
2022-01-10 14:11:49 -03:00
parent 853a2b304b
commit 88a2dd806d
11 changed files with 156 additions and 23 deletions

15
extension/options.js Normal file
View 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
})