aboutsummaryrefslogtreecommitdiffstats
path: root/vimiumFrontend.js
diff options
context:
space:
mode:
authorPhil Crosby2010-01-22 22:43:25 -0800
committerPhil Crosby2010-01-22 23:26:34 -0800
commit0dfae3a050b4201d54f2558483521b6688691bf6 (patch)
tree6cc385b7deb33aac55ce901d9f3208c4f119b257 /vimiumFrontend.js
parent893eaeb5c96ff5a324bc886f77c624aea4854947 (diff)
downloadvimium-0dfae3a050b4201d54f2558483521b6688691bf6.tar.bz2
Move the link hints CSS to the background page, and create a setting for user-definable CSS.
Diffstat (limited to 'vimiumFrontend.js')
-rw-r--r--vimiumFrontend.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js
index 33814951..8afa93eb 100644
--- a/vimiumFrontend.js
+++ b/vimiumFrontend.js
@@ -22,6 +22,7 @@ var isEnabledForUrl = true;
// The user's operating system.
var platform;
var currentCompletionKeys;
+var linkHintCss;
// TODO(philc): This should be pulled from the extension's storage when the page loads.
var currentZoomLevel = 100;
@@ -65,6 +66,10 @@ function initializePreDomReady() {
var getZoomLevelPort = chrome.extension.connect({ name: "getZoomLevel" });
getZoomLevelPort.postMessage({ domain: window.location.host });
+ chrome.extension.sendRequest({handler: "getLinkHintCss"}, function (response) {
+ linkHintCss = response.linkHintCss;
+ });
+
refreshCompletionKeys();
// Send the key to the key handler in the background page.