From f9839c2360eafcbec47419e0c7ca8bfa30d88ed8 Mon Sep 17 00:00:00 2001 From: timonson Date: Thu, 14 Mar 2024 00:52:28 +0100 Subject: [PATCH] Fix --- .github/workflows/test.yml | 2 +- static/src/form.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 366e675..d8899e5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: - name: Setup Deno run: | - curl -fsSL https://deno.land/x/install/install.sh | sh ${{ matrix.deno == 'old' && '-s v1.34.1' || '' }} + curl -fsSL https://deno.land/x/install/install.sh | sh ${{ matrix.deno == 'old' && '-s v1.41.2' || '' }} echo "$HOME/.deno/bin" >> $${{ runner.os == 'Windows' && 'env:' || '' }}GITHUB_PATH - name: Upgrade to Deno canary if: matrix.deno == 'canary' diff --git a/static/src/form.ts b/static/src/form.ts index 037547f..efefadc 100644 --- a/static/src/form.ts +++ b/static/src/form.ts @@ -50,6 +50,7 @@ function copyOgImageOnEvent() { /* Adopted from https://stackoverflow.com/questions/400212/how-do-i-copy-to-the-clipboard-in-javascript/33928558#33928558 */ function copyToClipboardLegacy(text: string) { // @ts-ignore: external code + // deno-lint-ignore no-window if (window.clipboardData && window.clipboardData.setData) { // @ts-ignore: external code return window.clipboardData.setData("Text", text);