Define constant objects with "var", not "const".
Objects defined with "const" cannot be exported by the method: let { SymbolName } = Cu.import("URL", {}) because variables defined with "const" are not stored as a property of the global object, at Firefox 44 and later.
This commit is contained in:
parent
ff2d3caed5
commit
f2e07bd5b7
@ -59,7 +59,7 @@ XPCOMUtils.defineLazyGetter(this, 'prefs', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
const AutoHideConstants = Object.freeze(inherit(TreeStyleTabConstants, {
|
var AutoHideConstants = Object.freeze(inherit(TreeStyleTabConstants, {
|
||||||
kMODE : 'treestyletab-tabbar-autohide-mode',
|
kMODE : 'treestyletab-tabbar-autohide-mode',
|
||||||
kMODE_DISABLED : 0,
|
kMODE_DISABLED : 0,
|
||||||
kMODE_HIDE : 1,
|
kMODE_HIDE : 1,
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
const EXPORTED_SYMBOLS = ['TreeStyleTabConstants'];
|
const EXPORTED_SYMBOLS = ['TreeStyleTabConstants'];
|
||||||
|
|
||||||
const TreeStyleTabConstants = Object.freeze({
|
var TreeStyleTabConstants = Object.freeze({
|
||||||
/* attributes */
|
/* attributes */
|
||||||
kID : 'treestyletab-id',
|
kID : 'treestyletab-id',
|
||||||
kCHILDREN : 'treestyletab-children',
|
kCHILDREN : 'treestyletab-children',
|
||||||
|
@ -68,7 +68,7 @@ const TST_PREF_PREFIX = 'extensions.treestyletab.';
|
|||||||
const TST_PREF_VERSION = 10;
|
const TST_PREF_VERSION = 10;
|
||||||
|
|
||||||
|
|
||||||
let TreeStyleTabUtils = {
|
var TreeStyleTabUtils = {
|
||||||
|
|
||||||
get prefs () {
|
get prefs () {
|
||||||
return prefs;
|
return prefs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user