Chromium Code Reviews| Index: chrome/browser/resources/chromeos/chromevox/chromevox/injected/script_installer.js |
| diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/script_installer.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/script_installer.js |
| index a76e503688cba08cb7ea31e07d16856c4527eaaa..03afc5957824a900d54b2bb8aa40c3c6a3fcd4d3 100644 |
| --- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/script_installer.js |
| +++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/script_installer.js |
| @@ -10,7 +10,6 @@ |
| goog.provide('cvox.ScriptInstaller'); |
| -goog.require('cvox.DomUtil'); |
| /** |
| * URL pattern where we do not allow script installation. |
| @@ -89,11 +88,13 @@ cvox.ScriptInstaller.installScriptHelper_ = function(srcs, uid, opt_onload, |
| apiScript.type = 'text/javascript'; |
| apiScript.setAttribute(uid, '1'); |
| apiScript.textContent = scriptText; |
| + console.log('inst!'+scriptText); |
|
dmazzoni
2017/03/09 00:26:36
remove debugging?
|
| if (opt_chromevoxScriptBase) { |
| apiScript.setAttribute('chromevoxScriptBase', |
| opt_chromevoxScriptBase); |
| } |
| - cvox.DomUtil.addNodeToHead(apiScript); |
| + var p = document.head || document.body; |
|
dmazzoni
2017/03/09 00:26:36
Give this a clearer name like scriptOwner or somet
|
| + p.appendChild(apiScript); |
| next(); |
| } |
| }; |