Team:Freiburg/Templates/html/inlinejs.html

From 2014.igem.org

(Difference between revisions)
Line 10: Line 10:
     var unwantedStylesheets = document.head.querySelectorAll('head link[rel="stylesheet"], head style[type="text/css"]');
     var unwantedStylesheets = document.head.querySelectorAll('head link[rel="stylesheet"], head style[type="text/css"]');
     for (var i=0;i<unwantedStylesheets.length; i++){
     for (var i=0;i<unwantedStylesheets.length; i++){
-
       unwantedStylesheets[i].remove();
+
       unwantedStylesheets[i].parentNode.removeChild(unwantedStylesheets[i]);
     }
     }
   }
   }

Revision as of 22:06, 10 October 2014