Skip to content
Snippets Groups Projects
Commit 36112a4b authored by David Hoksza's avatar David Hoksza
Browse files

clearing timers in plugin unregistration

parent eb1d2d21
No related branches found
No related tags found
No related merge requests found
Pipeline #12923 passed
......@@ -62,6 +62,8 @@ const register = function(_minerva) {
};
const unregister = function () {
clearTimeouts();
// console.log('unregistering ' + pluginName + ' plugin');
// unregisterListeners();
......@@ -407,13 +409,17 @@ function confirmationTimeout() {
}
}
function clearTimeouts() {
window.clearTimeout(mainTimeoutId);
window.clearTimeout(confirmationTimeoutId);
}
function resetTimer(full=false) {
console.log("reset timer", full)
if (full){
introJsInstances.forEach(intro => intro.exit(true));
}
window.clearTimeout(mainTimeoutId);
window.clearTimeout(confirmationTimeoutId);
clearTimeouts();
hideModal();
startTimer();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment