Disable Gridster after window resize when Gridster is/should be disabled (#14222)

* Disable Gridster after window resize when Gridster is/should be disabled

* Identation fix on next line after code addition
This commit is contained in:
Tim de Boer
2022-09-03 04:07:32 +02:00
committed by GitHub
parent ef1076dd7b
commit cae5e01d20

View File

@@ -751,6 +751,15 @@
});
}
addEvent(window, "resize", function(event) {
setTimeout(function(){
if(!gridster_state) {
gridster.disable();
gridster.disable_resize();
}
}, 100);
});
@if($browser_push)
if (localStorage.getItem('notifications') !== 'disabled') {
Notification.requestPermission().then(function (permission) {