huangxiaojing преди 4 години
родител
ревизия
7f3397de75
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      screenIos/workerFakeDom.js

+ 1 - 1
screenIos/workerFakeDom.js

@@ -6,7 +6,7 @@ fakeElement.toString = function () { return "FakeElement" };
 fakeElement.parentNode = fakeElement.firstChild = fakeElement.lastChild = fakeElement;
 fakeElement.ownerDocument = document;
 
-document.head = document.body = fakeElement;
+// document.head = document.body = fakeElement;
 document.ownerDocument = document.documentElement = document;
 document.getElementById = document.createElement = function () { return fakeElement; };
 document.createDocumentFragment = function () { return this; };