aboutsummaryrefslogtreecommitdiffstats
path: root/vimiumFrontend.js
diff options
context:
space:
mode:
authorJez Ng2012-03-03 03:11:25 -0500
committerJez Ng2012-03-06 08:43:10 -0500
commite9366ac22ed32ef54cf949acc9f63190b04c5773 (patch)
tree02871cb32f4494eb2826087f49d27ef68aad717a /vimiumFrontend.js
parent8d85fef79ea1e50106df47f4ae652e7c4dd0f07d (diff)
downloadvimium-e9366ac22ed32ef54cf949acc9f63190b04c5773.tar.bz2
Further reduction in state -- cssAdded is unnecessary.
Diffstat (limited to 'vimiumFrontend.js')
-rw-r--r--vimiumFrontend.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js
index cc7065c0..80881d84 100644
--- a/vimiumFrontend.js
+++ b/vimiumFrontend.js
@@ -1141,13 +1141,14 @@ Tween = {
/*
* Adds the given CSS to the page.
*/
-function addCssToPage(css) {
+function addCssToPage(css, id) {
var head = document.getElementsByTagName("head")[0];
if (!head) {
head = document.createElement("head");
document.documentElement.appendChild(head);
}
var style = document.createElement("style");
+ style.id = id;
style.type = "text/css";
style.appendChild(document.createTextNode(css));
head.appendChild(style);