1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Added clear interval

Also ensures that the persistent data is loaded correctly in ESR.

Fixes #139 and #143
This commit is contained in:
kkapsner 2017-11-08 17:46:41 +01:00
parent ec1c5ae7d8
commit 3cb1974b18
14 changed files with 283 additions and 43 deletions

View file

@ -140,6 +140,14 @@
if (setting.action){
interaction = createButton(setting);
}
else if (setting.inputs){
interaction = document.createElement("span");
setting.inputs.forEach(function(inputSetting){
var input = createInput(inputSetting);
input.classList.add("multiple" + setting.inputs.length);
interaction.appendChild(input);
});
}
else {
interaction = createInput(setting);
}