mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 10:39:57 +00:00
Fix issue with extra colon when constructing menu match patterns
This commit is contained in:
@@ -307,7 +307,7 @@ async function initMenus () {
|
|||||||
? url.hostname.substring(url.hostname.indexOf(".") + 1)
|
? url.hostname.substring(url.hostname.indexOf(".") + 1)
|
||||||
: url.hostname;
|
: url.hostname;
|
||||||
|
|
||||||
const portlessOrigin = `${url.protocol}://${url.hostname}`;
|
const portlessOrigin = `${url.protocol}//${url.hostname}`;
|
||||||
|
|
||||||
const patternRecommended = `${portlessOrigin}/*`;
|
const patternRecommended = `${portlessOrigin}/*`;
|
||||||
const patternSearch = `${portlessOrigin}${url.pathname}${url.search}`;
|
const patternSearch = `${portlessOrigin}${url.pathname}${url.search}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user