Skip to content

Commit

Permalink
replace BrowserOpenURL with slightly faster alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Oct 29, 2024
1 parent d73a147 commit dc7b7e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/general/AppInfoOverlay.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { BrowserOpenURL } from "@runtime"
import { openLink } from "@frontend/src/util"
import { version } from "@frontend/package.json" with { type: "json" }
Expand Down Expand Up @@ -41,17 +41,17 @@ const {
<div class="flex row gap-1">
<Button class="outlined-btn w-6" severity="help"
icon="pi pi-heart-fill" label="Donate"
@click="BrowserOpenURL('https://github.com/sponsors/Owen3H')"
@click="openLink('https://github.com/sponsors/Owen3H')"
/>

<Button class="outlined-btn w-full" severity="primary"
icon="pi pi-github" label="View source code"
@click="BrowserOpenURL('https://github.com/The-Egg-Corp/modm8')"
@click="openLink('https://github.com/The-Egg-Corp/modm8')"
/>

<Button class="outlined-btn w-full" style="background-color: #7289da;"
icon="pi pi-discord" label="Join the community"
@click="BrowserOpenURL('https://discord.gg/64Vq7cpdGV')"
@click="openLink('https://discord.gg/64Vq7cpdGV')"
/>
</div>
</div>
Expand Down

0 comments on commit dc7b7e8

Please sign in to comment.