apply yflory's safari patch

pull/1/head
ansuz 2017-01-09 11:46:51 +01:00
parent 0373556475
commit a3cd100c94
1 changed files with 5 additions and 0 deletions

View File

@ -630,6 +630,11 @@ define([
if (!APP.isMaximized) {
editor.execCommand('maximize');
APP.isMaximized = true;
// We have to call it 3 times in Safari in order to have the editor fully maximized -_-
if ((''+window.navigator.vendor).indexOf('Apple') !== -1) {
editor.execCommand('maximize');
editor.execCommand('maximize');
}
}
module.patchText = TextPatcher.create({