mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 21:00:23 +01:00
Only set random supply when it changes
This commit is contained in:
parent
983423dafa
commit
2222ba65c8
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user