feat: add more helper functions to controller

This commit is contained in:
Percs 2024-12-15 17:23:33 -06:00
parent 519c4e3486
commit 542049470e
2 changed files with 11 additions and 1 deletions

View file

@ -15,6 +15,10 @@ export class ScramjetFrame extends EventTarget {
return this.frame.contentWindow.window[SCRAMJETCLIENT];
}
get url(): URL {
return this.client.url;
}
go(url: string | URL) {
if (url instanceof URL) url = url.toString();