mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-11-24 16:17:17 +00:00
Fix crashes when attempting full screen mode on browsers that don't support it
Fixes #311
This commit is contained in:
1 parent
ac81d9d43f
commit
ef59a3743f
1 file changed
+5
-3
@@ -37,9 +37,11 @@ var toggleFullscreen = function() {
|
||||
|
||||
exports.startup = function() {
|
||||
// Install the full screen handler
|
||||
$tw.rootWidget.addEventListener("tw-full-screen",function(event) {
|
||||
toggleFullscreen();
|
||||
});
|
||||
if(_requestFullscreen) {
|
||||
$tw.rootWidget.addEventListener("tw-full-screen",function(event) {
|
||||
toggleFullscreen();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
})();
|
||||
Reference in new issue
Block a user