mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
dont expect safari
This commit is contained in:
parent
c6b0c92061
commit
1cbaf2d272
1 changed files with 1 additions and 1 deletions
|
@ -432,7 +432,7 @@ const makeContentCollector = function (
|
||||||
let styl = dom.nodeAttr(node, 'style');
|
let styl = dom.nodeAttr(node, 'style');
|
||||||
let cls = dom.nodeAttr(node, 'class');
|
let cls = dom.nodeAttr(node, 'class');
|
||||||
let isPre = (tname === 'pre');
|
let isPre = (tname === 'pre');
|
||||||
if ((!isPre) && abrowser.safari) {
|
if ((!isPre) && abrowser && abrowser.safari) {
|
||||||
isPre = (styl && /\bwhite-space:\s*pre\b/i.exec(styl));
|
isPre = (styl && /\bwhite-space:\s*pre\b/i.exec(styl));
|
||||||
}
|
}
|
||||||
if (isPre) cc.incrementFlag(state, 'preMode');
|
if (isPre) cc.incrementFlag(state, 'preMode');
|
||||||
|
|
Loading…
Reference in a new issue