An associate array in JavaScript is not possible to check
its emptiness by the length of the array itself or null.
To resolve it, this patch gets the keys of the array and
check the length of the keys to evaluate the emptiness
of the array.
Change-Id: If460e9690a9ddc39acfbed414f9dca13cc37a8e4
Signed-off-by: hyunduk.kim <hyunduk.kim@samsung.com>
}
isAddonAvailable() {
- return this.extensions_ != null;
+ return Object.keys(this.extensions_).length != 0;
}
static getManifestFile() {
fullscreen: false,
show: false,
webPreferences: {
- nodeIntegration: false,
+ nodeIntegration: options.isAddonAvailable,
nodeIntegrationInWorker: false
},
'web-preferences': {