Use Array.prototype.map.call instead of Array.map
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 13 Apr 2017 15:32:33 +0200
changeset 113 8b4ab8ddb35d
parent 112 2316727a0495
child 114 82e5abf95f92
Use Array.prototype.map.call instead of Array.map The latter is not available in Chromium apparently.
src/components/Root.js
--- a/src/components/Root.js	Thu Apr 13 15:22:49 2017 +0200
+++ b/src/components/Root.js	Thu Apr 13 15:32:33 2017 +0200
@@ -30,7 +30,7 @@
             <div>
                 <h3>{renderTitle()}</h3>
                 <ul className="list-group">{
-                Array.map(resource.data.links(), link =>
+                Array.prototype.map.call(resource.data.links(), link =>
                     <li className="list-group-item" key={link.href}>
                         <Link to={link.href}>{link.title}</Link>
                     </li>