Fix path to Greasemonkey's internal modules (for GM 3.5)
This commit is contained in:
parent
5a17a36773
commit
75f761d291
@ -318,11 +318,11 @@ TreeStyleTabWindowHelper.overrideExtensionsPreInit = function TSTWH_overrideExte
|
|||||||
// https://addons.mozilla.org/firefox/addon/748
|
// https://addons.mozilla.org/firefox/addon/748
|
||||||
if (TreeStyleTabUtils.getTreePref('compatibility.Greasemonkey')) {
|
if (TreeStyleTabUtils.getTreePref('compatibility.Greasemonkey')) {
|
||||||
try {
|
try {
|
||||||
let hitchModule = Components.utils.import('resource://greasemonkey-modules/util/hitch.js', {});
|
let hitchModule = Components.utils.import('chrome://greasemonkey-modules/content/util/hitch.js', {});
|
||||||
let hitch = hitchModule.hitch;
|
let hitch = hitchModule.hitch;
|
||||||
if (hitch.toSource().indexOf('TreeStyleTabService') < 0) {
|
if (hitch.toSource().indexOf('TreeStyleTabService') < 0) {
|
||||||
let ns = {};
|
let ns = {};
|
||||||
Components.utils.import('resource://greasemonkey-modules/third-party/getChromeWinForContentWin.js', ns);
|
Components.utils.import('chrome://greasemonkey-modules/content/third-party/getChromeWinForContentWin.js', ns);
|
||||||
let getChromeWinForContentWin = ns.getChromeWinForContentWin;
|
let getChromeWinForContentWin = ns.getChromeWinForContentWin;
|
||||||
hitchModule.hitch = function(aObject, aMethod) {
|
hitchModule.hitch = function(aObject, aMethod) {
|
||||||
if (typeof aMethod == 'function' &&
|
if (typeof aMethod == 'function' &&
|
||||||
@ -342,7 +342,7 @@ TreeStyleTabWindowHelper.overrideExtensionsPreInit = function TSTWH_overrideExte
|
|||||||
}
|
}
|
||||||
return hitch.apply(this, arguments);
|
return hitch.apply(this, arguments);
|
||||||
};
|
};
|
||||||
Components.utils.import('resource://greasemonkey-modules/util.js', ns);
|
Components.utils.import('chrome://greasemonkey-modules/content/util.js', ns);
|
||||||
if (ns.GM_util)
|
if (ns.GM_util)
|
||||||
ns.GM_util.hitch = hitchModule.hitch;
|
ns.GM_util.hitch = hitchModule.hitch;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user