cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject spec commit: changed document.write to use document.createElement('script')
Date Wed, 22 May 2013 19:18:12 GMT
Updated Branches:
  refs/heads/master ae18f3ea5 -> 8b1fd7d49


changed document.write to use document.createElement('script')


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/8b1fd7d4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/8b1fd7d4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/8b1fd7d4

Branch: refs/heads/master
Commit: 8b1fd7d49c278d43b34b4c041f1575a1a39a664d
Parents: ae18f3e
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Wed May 22 12:17:07 2013 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Wed May 22 12:17:07 2013 -0700

----------------------------------------------------------------------
 cordova-incl.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/8b1fd7d4/cordova-incl.js
----------------------------------------------------------------------
diff --git a/cordova-incl.js b/cordova-incl.js
index c624996..458e10a 100644
--- a/cordova-incl.js
+++ b/cordova-incl.js
@@ -59,7 +59,9 @@ if (PLAT) {
 }
 
 if (!window._doNotWriteCordovaScript) {
-    document.write('<script type="text/javascript" charset="utf-8" src="' + cordovaPath
+ '"></script>');
+    var script = document.createElement("script");
+    script.src = cordovaPath;
+    document.head.appendChild(script);
 }
 
 function backHome() {


Mime
View raw message