@urga-panel/ur-panels-core 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -18,5 +18,6 @@ export declare class WVFrontService extends Service {
|
|
|
18
18
|
protected onDestroy(): Promise<ServiceResponse>;
|
|
19
19
|
oWebViewInterface: NSWebViewinterface;
|
|
20
20
|
constructor(ots: WVFrontServiceOts);
|
|
21
|
+
gotoBack(): void;
|
|
21
22
|
sendFetchRequest(url: string, options?: RequestInit): Promise<any>;
|
|
22
23
|
}
|
|
@@ -26,6 +26,9 @@ export class WVFrontService extends Service {
|
|
|
26
26
|
constructor(ots) {
|
|
27
27
|
super({ ...ots });
|
|
28
28
|
}
|
|
29
|
+
gotoBack() {
|
|
30
|
+
this.oWebViewInterface.emit("gotoBack", "");
|
|
31
|
+
}
|
|
29
32
|
async sendFetchRequest(url, options) {
|
|
30
33
|
console.log("sendFetchRequest", url, options);
|
|
31
34
|
const id = `r_${Date.now()}_${++WVFrontService._requestIdCounter}`;
|
package/package.json
CHANGED
|
@@ -39,6 +39,10 @@ export class WVFrontService extends Service {
|
|
|
39
39
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
public gotoBack() {
|
|
43
|
+
this.oWebViewInterface.emit("gotoBack", "");
|
|
44
|
+
}
|
|
45
|
+
|
|
42
46
|
public async sendFetchRequest(url: string, options?: RequestInit): Promise<any> {
|
|
43
47
|
console.log("sendFetchRequest", url, options);
|
|
44
48
|
const id = `r_${Date.now()}_${++WVFrontService._requestIdCounter}`;
|
|
@@ -95,4 +99,6 @@ export class WVFrontService extends Service {
|
|
|
95
99
|
});
|
|
96
100
|
}
|
|
97
101
|
|
|
102
|
+
|
|
103
|
+
|
|
98
104
|
}
|