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:
parent
983423dafa
commit
2222ba65c8
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user