mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-02 08:48:37 +09:00
[Client] Fix bug
This commit is contained in:
parent
d2182c1705
commit
3175706086
@ -33,15 +33,14 @@
|
||||
this.url = this.opts.href;
|
||||
|
||||
this.on('before-mount', () => {
|
||||
parser = document.createElement('a');
|
||||
parser.href = this.url;
|
||||
const url = new URL(this.url);
|
||||
|
||||
this.schema = parser.protocol;
|
||||
this.hostname = parser.hostname;
|
||||
this.port = parser.port;
|
||||
this.pathname = parser.pathname;
|
||||
this.query = parser.search;
|
||||
this.hash = parser.hash;
|
||||
this.schema = url.protocol;
|
||||
this.hostname = url.hostname;
|
||||
this.port = url.port;
|
||||
this.pathname = url.pathname;
|
||||
this.query = url.search;
|
||||
this.hash = url.hash;
|
||||
|
||||
this.update();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user