mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-07 09:42:52 -08: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
1 changed files with 5 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue