diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dom_utils.coffee | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee index 65a14c34..32d402df 100644 --- a/lib/dom_utils.coffee +++ b/lib/dom_utils.coffee @@ -407,5 +407,13 @@ DomUtils =    windowIsTooSmall: ->      return window.innerWidth < 3 or window.innerHeight < 3 +  # Inject user styles manually. This is only necessary for our chrome-extension:// pages and frames. +  injectUserCss: -> +    Settings.onLoaded -> +      style = document.createElement "style" +      style.type = "text/css" +      style.textContent = Settings.get "userDefinedLinkHintCss" +      document.head.appendChild style +  root = exports ? window  root.DomUtils = DomUtils | 
