feat(web): use shared-web (#3116)
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
|
||||
<script>
|
||||
import ThemeToggle from './ThemeToggle.vue'
|
||||
import { initDiscord } from '@lizardbyte/shared-web/src/js/discord.js'
|
||||
|
||||
export default {
|
||||
components: { ThemeToggle },
|
||||
@@ -48,9 +49,7 @@ export default {
|
||||
mounted() {
|
||||
let el = document.querySelector("a[href='" + document.location.pathname + "']");
|
||||
if (el) el.classList.add("active")
|
||||
let discordWidget = document.createElement('script')
|
||||
discordWidget.setAttribute('src', 'https://app.lizardbyte.dev/js/discord.js')
|
||||
document.head.appendChild(discordWidget)
|
||||
initDiscord();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user