Reduce use of eval()
This commit is contained in:
parent
750ada61d8
commit
290b124333
@ -475,13 +475,13 @@ TreeStyleTabWindowHelper.overrideExtensionsAfterBrowserInit = function TSTWH_ove
|
|||||||
// https://addons.mozilla.org/firefox/addon/quickdrag/
|
// https://addons.mozilla.org/firefox/addon/quickdrag/
|
||||||
if ('QuickDrag' in window &&
|
if ('QuickDrag' in window &&
|
||||||
'_loadTab' in QuickDrag &&
|
'_loadTab' in QuickDrag &&
|
||||||
TreeStyleTabUtils.getTreePref('compatibility.QuickDrag')) {
|
TreeStyleTabUtils.getTreePref('compatibility.QuickDrag') &&
|
||||||
eval('QuickDrag._loadTab = '+
|
!QuickDrag.__treestyletab__loadTab) {
|
||||||
QuickDrag._loadTab.toSource().replace(
|
QuickDrag.__treestyletab__loadTab = QuickDrag._loadTab;
|
||||||
/(gBrowser.loadOneTab\()/g,
|
QuickDrag._loadTab = function(...aArgs) {
|
||||||
'TreeStyleTabService.readyToOpenChildTab(), $1'
|
TreeStyleTabService.readyToOpenChildTabNow();
|
||||||
)
|
return this.__treestyletab__loadTab(...aArgs);
|
||||||
);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Google Toolbar Sidewiki
|
// Google Toolbar Sidewiki
|
||||||
|
Loading…
Reference in New Issue
Block a user