1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00

Fix crashes when attempting full screen mode on browsers that don't support it

Fixes #311
This commit is contained in:
Jermolene 2013-12-29 12:54:00 +00:00
parent ac81d9d43f
commit ef59a3743f

View File

@ -37,9 +37,11 @@ var toggleFullscreen = function() {
exports.startup = function() { exports.startup = function() {
// Install the full screen handler // Install the full screen handler
$tw.rootWidget.addEventListener("tw-full-screen",function(event) { if(_requestFullscreen) {
toggleFullscreen(); $tw.rootWidget.addEventListener("tw-full-screen",function(event) {
}); toggleFullscreen();
});
}
}; };
})(); })();