If passed parameter is |false| or |undefined| then also
|package_id| is updated as current package. which is causing
failure in package service webtct failure.
Change-Id: I6823ed175c3e65224e699d3084b28cd27eb3fab9
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
refinePackageApis() {
// tizen.package.getPackageInfo()
this.funcGetPackageInfo = global.tizen.package.getPackageInfo;
- global.tizen.package.getPackageInfo = (package_id?: string) => {
- console.log(`Routing - getPackageInfo()`);
- if (!package_id)
+ global.tizen.package.getPackageInfo = (...args: any[]) => {
+ let package_id = args[0];
+ if (!args.length || args[0] === null)
package_id = this.getPackageId();
+ console.log(`Routing - getPackageInfo() : ${package_id}`);
return this.funcGetPackageInfo(package_id);
}
}