Skip to content

Commit

Permalink
Merge pull request PreMiD#3068 from KnuffelBeestje/VRCArena-ButtonPatch
Browse files Browse the repository at this point in the history
VRCArena: added basic buttons
  • Loading branch information
mergify[bot] authored Feb 21, 2021
2 parents 004c637 + dd7e377 commit 8216119
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion websites/V/VRCArena/dist/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"nl": "Download en upload verschillende assets en tutorials voor verschillende (dier)soorten die te vinden zijn in het VR online multiplayer spel VRChat."
},
"service": "VRCArena",
"version": "1.0.2",
"version": "1.0.3",
"logo": "https://i.imgur.com/Kio1VbP.jpg",
"thumbnail": "https://i.imgur.com/F7iayRw.png",
"color": "#5f3d8a",
Expand Down
8 changes: 8 additions & 0 deletions websites/V/VRCArena/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ presence.on("UpdateData", async () => {
privacymode = await presence.getSetting("privacy");

if (document.location.hostname == "www.vrcarena.com") {
if(!privacymode) {
presenceData.buttons = [
{
label: "View on VRCArena",
url: document.URL.split("?")[0]
}
];
}
// Categories
if (document.location.pathname.includes("/category")) {
switch (document.location.pathname) {
Expand Down

0 comments on commit 8216119

Please sign in to comment.