Skip to content

Commit

Permalink
Last minute fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kaleidawave committed Aug 29, 2024
1 parent 05ac6f0 commit 53b81ab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-playground.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish playground to GitHub pages
name: Publish playground (and comparison) to GitHub pages

on:
workflow_dispatch
Expand Down
2 changes: 1 addition & 1 deletion src/playground/comparison/comparison_generator.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async function renderDifferences(sections) {
const tscPlaygroundLink = `https://www.typescriptlang.org/play?#code/${codeCompressed}`;

acc += `<li>
<h3 id="#${href}">${title}</h3>
<h3 id="${href}">${title}</h3>
<div>
${highlightedCode}
<div>
Expand Down
1 change: 1 addition & 0 deletions src/playground/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ async function setup() {
}).then(res => res.json()).then((result) => {
if (result.id) {
url.searchParams.set("id", result.id);
url.searchParams.delete("raw");
history.pushState({}, "", url);
navigator.clipboard.writeText(url.toString()).then(() => {
alert("Share URL copied to clipboard")
Expand Down
3 changes: 1 addition & 2 deletions src/playground/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig, normalizePath } from 'vite'
import { defineConfig } from 'vite'

export default defineConfig({
clearScreen: false,
Expand All @@ -12,5 +12,4 @@ export default defineConfig({
server: {
fs: { strict: false }
},
// assetsInclude: ["./node_modules/ezno/dist/shared/*.wasm"]
})

0 comments on commit 53b81ab

Please sign in to comment.