1
0
mirror of https://github.com/nileshtrivedi/better synced 2025-01-01 07:57:24 +01:00
migliori-alternative/options.js
2020-08-02 23:04:50 +05:30

9 lines
302 B
JavaScript

let input = document.getElementById('betterSourceText');
let submit = document.getElementById('betterSourceSubmit');
submit.addEventListener('click', function() {
chrome.storage.sync.set({betterSourceURL: input.value}, function() {
console.log('Set betterSource = ' + input.value);
})
});