Skip to content

Commit

Permalink
Fixed Firefox 36+ compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
diegocr committed Feb 24, 2015
1 parent 182e58e commit 776f0b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
10 changes: 9 additions & 1 deletion bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
let {classes:Cc,interfaces:Ci,utils:Cu,results:Cr} = Components,addon;

Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");

function rsc(n) 'resource://' + addon.tag + '/' + n;
function LOG(m) addon.debug && (m = addon.name + ' Message @ '
Expand Down Expand Up @@ -403,7 +404,14 @@ function setFavicon(uri, cell) {
});
}

try{const{CustomizableUI:aUI}=Cu.import("resource:///modules/CustomizableUI.jsm",{})}catch(e){}
XPCOMUtils.defineLazyGetter(this, 'aUI', function() {
if (3!=ia) try {
var { CustomizableUI } = Cu.import('resource:///modules/CustomizableUI.jsm', {});
} catch(e) {
Cu.reportError(e);
}
return typeof CustomizableUI !== 'undefined' && CustomizableUI;
});

function loadIntoWindow(window) {
if(wt!=window.document.documentElement.getAttribute("windowtype"))
Expand Down
7 changes: 4 additions & 3 deletions install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
<em:id>{158d7cb3-7039-4a75-8e0b-3bd0a464edd2}</em:id>
<em:type>2</em:type>
<em:name>Clean Links</em:name>
<em:version>2.7a2</em:version>
<em:version>2.7</em:version>
<em:creator>Diego Casorran</em:creator>
<em:contributor>Eduard Braun</em:contributor>
<em:contributor>Simon Chan</em:contributor>
<em:description>Converts obfuscated/nested links to genuine clean links</em:description>
<em:bootstrap>true</em:bootstrap>
Expand Down Expand Up @@ -46,7 +47,7 @@
<!-- Firefox -->
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>22.0</em:minVersion>
<em:maxVersion>35.*</em:maxVersion>
<em:maxVersion>36.*</em:maxVersion>
</Description>
</em:targetApplication>
<em:targetApplication>
Expand All @@ -70,7 +71,7 @@
<!-- Android -->
<em:id>{aa3c5121-dab2-40e2-81ca-7ea25febc110}</em:id>
<em:minVersion>22.0</em:minVersion>
<em:maxVersion>34.*</em:maxVersion>
<em:maxVersion>36.*</em:maxVersion>
</Description>
</em:targetApplication>
<em:targetApplication>
Expand Down

0 comments on commit 776f0b6

Please sign in to comment.