Skip to content

Commit

Permalink
cache fix
Browse files Browse the repository at this point in the history
  • Loading branch information
codediodeio committed Mar 26, 2024
1 parent ea6d06a commit 3c91da2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/util/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}

}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

</head>
<body>
{{ $vimeoEncode := cond (.Params.vimeo | not | not) (add (int .Params.vimeo) .Site.Data.svelte.token | base64Encode) "" }}
{{ $vimeoEncode := .Params.vimeo | base64Encode }}
{{ $ytEncode := .Params.youtube | base64Encode }}

<global-data
Expand Down

0 comments on commit 3c91da2

Please sign in to comment.