1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01: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);
}
}
scope.setRandomSupplyByType = setRandomSupplyByType;
settings.on("rng", function(){
setRandomSupplyByType(settings.rng);
});
function getURL(window){
var href;
@ -262,7 +264,6 @@
case "allow":
return {allow: true, original, window};
case "fake":
setRandomSupplyByType(prefs("rng"));
return {
allow: "fake",
prefs,