Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/script_installer.js

Issue 2740793002: Minimize the Classic API and enable it for Next (Closed)
Patch Set: Minimize the Classic API and enable it for Next Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..471039b363ad2301400cd1d91693a967428e73f2 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.
@@ -93,7 +92,8 @@ cvox.ScriptInstaller.installScriptHelper_ = function(srcs, uid, opt_onload,
apiScript.setAttribute('chromevoxScriptBase',
opt_chromevoxScriptBase);
}
- cvox.DomUtil.addNodeToHead(apiScript);
+ var scriptOwner = document.head || document.body;
+ scriptOwner.appendChild(apiScript);
next();
}
};

Powered by Google App Engine
This is Rietveld 408576698