global.webapis.getServiceId = () => {
return this.serviceId;
}
+ global.webapis.postPlainNotification = (title: string, message: string, timeout?: number) => {
+ return wrt.postPlainNotification(title, message, timeout ?? 10);
+ }
Object.defineProperties(global.webapis, {
getCallerAppId: { writable: false, enumerable: true },
getPackageId: { writable: false, enumerable: true },
getPermissions: { writable: false, enumerable: true },
getServiceId: { writable: false, enumerable: true },
+ showPlainNotification: { writable: false, enumerable: true },
});
this.initEdgeWebapis();
this.initMDEWebapis();