OpenInApp: Support VRCX
This commit is contained in:
parent
92f847bb37
commit
607faae32f
2 changed files with 6 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ export const ALLOWED_PROTOCOLS = [
|
|||
"com.epicgames.launcher:",
|
||||
"tidal:",
|
||||
"itunes:",
|
||||
"vrcx:",
|
||||
];
|
||||
|
||||
export const IS_VANILLA = /* @__PURE__ */ process.argv.includes("--vanilla");
|
||||
|
|
|
|||
|
|
@ -61,6 +61,11 @@ const UrlReplacementRules: Record<string, URLReplacementRule> = {
|
|||
replace: (_, lang, type, name, id) => id ? `itunes://music.apple.com/us/${type}/${name}/${id}` : `itunes://music.apple.com/us/${type}/${name}`,
|
||||
description: "Open Apple Music links in the iTunes app"
|
||||
},
|
||||
vrcx: {
|
||||
match: /^https:\/\/vrchat.com\/home\/(user|avatar|world|group)\/(.+)$/,
|
||||
replace: (_, type, id) => `vrcx://${type}/${id}`,
|
||||
description: "Open VRChat links in the VRCX app"
|
||||
}
|
||||
};
|
||||
|
||||
const pluginSettings = definePluginSettings(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue