From 3c91da2f9020112bcf215df0b12c17cdaf014b2a Mon Sep 17 00:00:00 2001 From: codediodeio Date: Tue, 26 Mar 2024 13:02:11 -0700 Subject: [PATCH] cache fix --- app/util/player.ts | 4 ++-- layouts/_default/baseof.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/util/player.ts b/app/util/player.ts index 712b849f4..63d76e5dd 100644 --- a/app/util/player.ts +++ b/app/util/player.ts @@ -16,8 +16,8 @@ export class UniversalPlayer { } else { const VimeoPlayer = (await import('@vimeo/player')).default; const decoded = parseInt(atob(this.video as string)); - const buildId = parseInt(document.head.dataset.build); - this.vimeoPlayer = new VimeoPlayer(this.el, { id: decoded - buildId }); + // const buildId = parseInt(document.head.dataset.build); + this.vimeoPlayer = new VimeoPlayer(this.el, { id: decoded }); } } diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index db6825f5f..0f080cb57 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -25,7 +25,7 @@ - {{ $vimeoEncode := cond (.Params.vimeo | not | not) (add (int .Params.vimeo) .Site.Data.svelte.token | base64Encode) "" }} + {{ $vimeoEncode := .Params.vimeo | base64Encode }} {{ $ytEncode := .Params.youtube | base64Encode }}