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:
parent
ac81d9d43f
commit
ef59a3743f
@ -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();
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user