mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 07:20:02 -04:00
feat: add more helper functions to controller
This commit is contained in:
parent
519c4e3486
commit
542049470e
2 changed files with 11 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue