mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-10 20:17:32 +01:00
Add method to redirect to a specific URL
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
3efadcb72c
commit
987a83b4cf
@ -240,6 +240,10 @@ export class Platform {
|
|||||||
return promise;
|
return promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
openUrl(url) {
|
||||||
|
location.href = url;
|
||||||
|
}
|
||||||
|
|
||||||
parseHTML(html) {
|
parseHTML(html) {
|
||||||
return parseHTML(html);
|
return parseHTML(html);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user