mirror of
https://github.com/nileshtrivedi/better
synced 2025-06-27 09:03:11 +02:00
Fix remote list loading
This commit is contained in:
10
options.js
10
options.js
@@ -3,6 +3,12 @@ let submit = document.getElementById('betterSourceSubmit');
|
||||
|
||||
submit.addEventListener('click', function() {
|
||||
chrome.storage.sync.set({betterSourceURL: input.value}, function() {
|
||||
console.log('Set betterSource = ' + input.value);
|
||||
})
|
||||
console.log('Set betterSource = ' + input.value);
|
||||
});
|
||||
|
||||
chrome.runtime.sendMessage({type: 'reloadList', url: input.value}, (response) => {
|
||||
if (response) {
|
||||
console.log("BETTER_ALTERNATIVES list is reloaded");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user