mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-07-16 17:48:51 +02:00
fix:#47 added window.location.hostname
This commit is contained in:
@ -19,14 +19,14 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import tokenStore from "@/store/tokenStore.ts";
|
import tokenStore from "@/store/tokenStore.ts";
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { computed, inject, onMounted } from "vue";
|
import { computed, onMounted } from "vue";
|
||||||
import { router } from "@/main";
|
import { router } from "@/main";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
const { t } = useI18n({ useScope: "global" });
|
const { t } = useI18n({ useScope: "global" });
|
||||||
|
|
||||||
const toast = useToast();
|
const toast = useToast();
|
||||||
|
|
||||||
const domain = inject<string>("domain")!;
|
const domain = window.location.hostname;
|
||||||
|
|
||||||
const getLink = () =>
|
const getLink = () =>
|
||||||
"https://" + domain + "/api/feed?token=" + tokenStore().token;
|
"https://" + domain + "/api/feed?token=" + tokenStore().token;
|
||||||
|
Reference in New Issue
Block a user