Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions frontend/src/views/Event.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<FormerlyKnownAs
class="tw-mx-auto tw-mb-10 tw-mt-3 tw-max-w-6xl tw-pl-4 sm:tw-pl-12"
/>
<!-- Video Ad (desktop only) -->
<div v-if="!isPhone" ref="videoAdContainer"></div>
<div v-if="event" class="tw-mt-8 tw-h-full">
<!-- Mark availability option dialog -->
<MarkAvailabilityDialog
Expand Down Expand Up @@ -603,6 +605,7 @@ export default {
}
// window.enableStickyFooter = true
// this.initFusetag()
this.loadVideoAd()
},

computed: {
Expand Down Expand Up @@ -699,6 +702,16 @@ export default {
...mapActions(["showError", "showInfo", "getEvents"]),
...mapMutations(["setAuthUser"]),

loadVideoAd() {
if (!this.isPhone && this.$refs.videoAdContainer) {
const script = document.createElement("script")
script.type = "text/javascript"
script.src =
"https://live.primis.tech/live/liveView.php?s=122130&schain=1.0,1!publift.com,01KF27H3XMWD7H1S0HYBGVB3BR,1"
this.$refs.videoAdContainer.appendChild(script)
}
},

initFusetag() {
console.log("initFusetag called, blockingFuseIds: ", [
"meet_vrec_lhs",
Expand Down
2 changes: 1 addition & 1 deletion server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func main() {
// Cors
corsOrigins := os.Getenv("CORS_ORIGINS")
if corsOrigins == "" {
corsOrigins = "https://www.schej.it,https://schej.it,https://www.timeful.app,https://timeful.app"
corsOrigins = "https://www.schej.it,https://schej.it,https://www.timeful.app,https://timeful.app,http://localhost:8080"
}
router.Use(cors.New(cors.Config{
AllowOrigins: strings.Split(corsOrigins, ","),
Expand Down
Loading