Edited schoolkiezer if statement to reflect correct value.

master
Martijn Oosterhuis 4 years ago
parent 9895aeef32
commit 9e98c13d20

@ -5,12 +5,12 @@ const q = document.querySelector.bind(document);
var snooze = ms => new Promise(res => setTimeout(res, ms)); var snooze = ms => new Promise(res => setTimeout(res, ms));
function login() { function login() {
chrome.storage.sync.get(['school','number', 'password'], async function (result) { chrome.storage.sync.get(['school', 'number', 'password'], async function (result) {
if (d("scholenkiezer_value")) { if (d("scholenkiezer_value")) {
await waitForSel("#scholenkiezer_value"); await waitForSel("#scholenkiezer_value");
if (d("scholenkiezer_value") && result.number) { if (d("scholenkiezer_value") && result.school) {
d("scholenkiezer_value").value = result.school; d("scholenkiezer_value").value = result.school;
d("scholenkiezer_value").dispatchEvent(new Event("input")); d("scholenkiezer_value").dispatchEvent(new Event("input"));
}; };

Loading…
Cancel
Save