From 4d97a5b59f6d2fd381b486611833c496ad285f4e Mon Sep 17 00:00:00 2001 From: Jason Stafford Date: Mon, 4 Feb 2019 09:59:52 -0800 Subject: [PATCH] fix selenium tests --- src/pyodide.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyodide.js b/src/pyodide.js index 0c288bb83..1007929dc 100644 --- a/src/pyodide.js +++ b/src/pyodide.js @@ -82,7 +82,7 @@ var languagePluginLoader = new Promise((resolve, reject) => { script.src = url; script.onload = (e) => { onload(); }; script.onerror = (e) => { onerror(); }; - self.document.body.appendChild(script); + self.document.head.appendChild(script); } else if (self.importScripts) { // webworker try { self.importScripts(url);