mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
Update constants.js for array assignment.
This commit is contained in:
parent
ee948be1cf
commit
457d84209a
1 changed files with 6 additions and 2 deletions
|
|
@ -4,7 +4,8 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// Process each item in the "constants hash" to add to "global" and give a name
|
||||
this.EXPORTED_SYMBOLS = [((this[key] = val), key) for ([key, val] in Iterator({
|
||||
this.EXPORTED_SYMBOLS = [];
|
||||
for (let [key, val] of Object.entries({
|
||||
|
||||
WEAVE_VERSION: "@weave_version@",
|
||||
|
||||
|
|
@ -182,4 +183,7 @@ MIN_PASS_LENGTH: 8,
|
|||
|
||||
LOG_DATE_FORMAT: "%Y-%m-%d %H:%M:%S",
|
||||
|
||||
}))];
|
||||
})) {
|
||||
this[key] = val;
|
||||
this.EXPORTED_SYMBOLS.push(key);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue