1
0
mirror of https://github.com/nileshtrivedi/better synced 2025-06-27 09:03:11 +02:00

feat: permanently dismiss popup

This commit is contained in:
Mitesh Shah
2020-08-06 16:11:23 +05:30
parent 308fd86d7f
commit 562d35d6dd
2 changed files with 28 additions and 4 deletions

View File

@ -35,7 +35,7 @@ function onStartup(){
function getMatch(url){
var match = BETTER_ALTERNATIVES.find(pattern => url.match(new RegExp(pattern.urlPattern)));
if(match && match.alternatives)
return match.alternatives;
return match;
else return null;
}