mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Fix crashes when attempting full screen mode on browsers that don't support it
Fixes #311
This commit is contained in:
parent
ac81d9d43f
commit
ef59a3743f
@ -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();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user