forked from FoundKeyGang/FoundKey
fix typo
tfw no building before push
This commit is contained in:
parent
09fe55379e
commit
6a40ef3569
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ let player = $ref({
|
|||
let playerEnabled = $ref(false);
|
||||
|
||||
const requestUrl = new URL(props.url);
|
||||
if(!['http:', 'https:].includes(requestUrl.protocol)) throw new Error('invalid url');
|
||||
if(!['http:', 'https:'].includes(requestUrl.protocol)) throw new Error('invalid url');
|
||||
|
||||
if (requestUrl.hostname === 'music.youtube.com' && requestUrl.pathname.match('^/(?:watch|channel)')) {
|
||||
requestUrl.hostname = 'www.youtube.com';
|
||||
|
|
Loading…
Reference in a new issue