Display Bugs in Microsoft Edge

tlylz99

New member
Joined
Aug 8, 2017
Messages
1
The newest skin doesn't work well in Microsoft Edge.
evolution-on-edge.png


When I opened the console in F12 dev tool,
Code:
SCRIPT438: Object doesn't support property or method 'forEach'
IMG_JS_APP_BUILD (1,266369)
, which refers to
Code:
var B=document.querySelectorAll("#app script"),
  Z=document.getElementById("foot");
B.forEach(function(e){Z.appendChild(e)});

----

Then I searched about it.
It is said that document.document.querySelectorAll is a NodeList, and MSEdge doesn't understand it.
Maybe MSEdge will support it as Chrome did.
Then just change to:
Code:
[].forEach.call(B,function(e){Z.appendChild(e)});
evolution-on-edge_mod.png

Perfect!

Reference(in chinese): http://www.cnblogs.com/yanze/p/5988142.html
 
Back
Top