mirror of
https://github.com/vinceliuice/WhiteSur-gtk-theme.git
synced 2025-06-08 16:43:06 +00:00
22 lines
790 B
XML
22 lines
790 B
XML
![]() |
<?xml version="1.0"?>
|
||
|
<bindings id="generalBindings"
|
||
|
xmlns="http://www.mozilla.org/xbl"
|
||
|
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||
|
xmlns:xbl="http://www.mozilla.org/xbl">
|
||
|
|
||
|
<binding id="js">
|
||
|
<implementation>
|
||
|
<constructor><![CDATA[
|
||
|
function makeRelativePathURI(name) {
|
||
|
let absolutePath = Components.stack.filename;
|
||
|
return absolutePath.substring(0, absolutePath.lastIndexOf("/") + 1) + name;
|
||
|
}
|
||
|
|
||
|
// The following code executes in the browser context,
|
||
|
// i.e. chrome://browser/content/browser.xul
|
||
|
Services.scriptloader.loadSubScript(makeRelativePathURI("scrollbars.js"), window);
|
||
|
]]></constructor>
|
||
|
</implementation>
|
||
|
</binding>
|
||
|
</bindings>
|