dont expect safari

image-example
John McLear 2021-01-14 14:08:53 +00:00
parent c6b0c92061
commit 1cbaf2d272
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ const makeContentCollector = function (
let styl = dom.nodeAttr(node, 'style');
let cls = dom.nodeAttr(node, 'class');
let isPre = (tname === 'pre');
if ((!isPre) && abrowser.safari) {
if ((!isPre) && abrowser && abrowser.safari) {
isPre = (styl && /\bwhite-space:\s*pre\b/i.exec(styl));
}
if (isPre) cc.incrementFlag(state, 'preMode');