Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Fix for CLEAR_WEB_HISTORY being sent in a desktop browser, while it should only be attempted on Mobile consoles. (#2267)

Martin Peeters2fb12e8c6fc0
diff --git a/ui/component/core/src/index.ts b/ui/component/core/src/index.ts
index e56388ee1..05676a915 100644
--- a/ui/component/core/src/index.ts
+++ b/ui/component/core/src/index.ts
@@ -1017,7 +1017,9 @@ export class Manager implements EventProviderFactory {
/** Function that clears the `WebView` history of a console. It will not delete the history on regular browsers. */
protected _clearWebHistory(): void {
- this.console?._doSendGenericMessage("CLEAR_WEB_HISTORY", undefined);
+ if(this.isMobile()) {
+ this.console?._doSendGenericMessage("CLEAR_WEB_HISTORY", undefined);
+ }
}
/**