From 987a83b4cf4d28276e2a803a6df6d82f57848a45 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 30 Jul 2021 23:03:18 +0530 Subject: [PATCH] Add method to redirect to a specific URL Signed-off-by: RMidhunSuresh --- src/platform/web/Platform.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platform/web/Platform.js b/src/platform/web/Platform.js index f1410106..7e28f36f 100644 --- a/src/platform/web/Platform.js +++ b/src/platform/web/Platform.js @@ -240,6 +240,10 @@ export class Platform { return promise; } + openUrl(url) { + location.href = url; + } + parseHTML(html) { return parseHTML(html); }