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:
@ -11,6 +11,9 @@ TODO
|
||||
- Pop-up should be dismissable (per URL / per domain).
|
||||
- Once dismissed, popup should not be shown on the same url/domain. Use cookies or localStorage for this.
|
||||
- Since we're replacing innerHTML, we should protect against XSS attacks.
|
||||
- Fix and test the options UI
|
||||
- Test and fix for Chrome, Brave & Firefox
|
||||
|
||||
*/
|
||||
|
||||
function showBetter(alternative) {
|
||||
@ -29,8 +32,6 @@ function showBetter(alternative) {
|
||||
document.body.appendChild(betterdiv);
|
||||
}
|
||||
|
||||
showBetter(findBetter(document.location.href));
|
||||
|
||||
chrome.runtime.sendMessage({type: 'getMatch', url: document.location.href}, (response) => {
|
||||
if (response) {
|
||||
showBetter(response);
|
||||
|
Reference in New Issue
Block a user