Fix js strict-mode error: avoid prohibits function statements not at the top level of a script or function.
This commit is contained in:
parent
70fdbb190d
commit
e691e6759e
@ -328,7 +328,7 @@ TreeStyleTabWindowHelper.overrideExtensionsBeforeBrowserInit = function TSTWH_ov
|
|||||||
if (TreeStyleTabUtils.getTreePref('compatibility.TMP') &&
|
if (TreeStyleTabUtils.getTreePref('compatibility.TMP') &&
|
||||||
'isTabVisible' in gBrowser.mTabContainer &&
|
'isTabVisible' in gBrowser.mTabContainer &&
|
||||||
'ensureTabIsVisible' in gBrowser.mTabContainer) {
|
'ensureTabIsVisible' in gBrowser.mTabContainer) {
|
||||||
function replaceHorizontalProps(aString)
|
let replaceHorizontalProps = function replaceHorizontalProps(aString)
|
||||||
{
|
{
|
||||||
return aString.replace(
|
return aString.replace(
|
||||||
/boxObject\.x/g,
|
/boxObject\.x/g,
|
||||||
|
Loading…
Reference in New Issue
Block a user