1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-04-18 08:08:28 +02:00

Only set random supply when it changes

This commit is contained in:
kkapsner 2019-05-10 00:38:38 +02:00
parent 983423dafa
commit 2222ba65c8

View File

@ -37,7 +37,9 @@
setRandomSupply(randomSupplies.nonPersistent); setRandomSupply(randomSupplies.nonPersistent);
} }
} }
scope.setRandomSupplyByType = setRandomSupplyByType; settings.on("rng", function(){
setRandomSupplyByType(settings.rng);
});
function getURL(window){ function getURL(window){
var href; var href;
@ -262,7 +264,6 @@
case "allow": case "allow":
return {allow: true, original, window}; return {allow: true, original, window};
case "fake": case "fake":
setRandomSupplyByType(prefs("rng"));
return { return {
allow: "fake", allow: "fake",
prefs, prefs,