Fix: Uc browser worker #62

This commit is contained in:
surunzi
2018-05-27 19:38:49 +08:00
parent 8227abe686
commit e6342d9b3f
8 changed files with 1844 additions and 1495 deletions

View File

@@ -1,4 +1,4 @@
import {each} from '../lib/util';
import {each, has} from '../lib/util';
function formatStyle(style)
{
@@ -47,7 +47,7 @@ export default class CssStore
each(document.styleSheets, (styleSheet) =>
{
// Started with version 64, Chrome does not allow cross origin script to access this property.
if (!styleSheet.hasOwnProperty('cssRules')) return;
if (!has(styleSheet, 'cssRules')) return;
each(styleSheet.cssRules, (cssRule) =>
{