Skip to content

Commit

Permalink
Build converted apps in correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Sep 18, 2022
1 parent b072c0f commit 6dfcb8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
panel convert examples/gallery/streaming/*.ipynb examples/gallery/dynamic/*.ipynb examples/gallery/param/*.ipynb --to pyodide-worker --out ./builtdoc/pyodide/
panel convert examples/gallery/streaming/*.ipynb examples/gallery/dynamic/*.ipynb examples/gallery/param/*.ipynb --to pyodide-worker --out ./builtdocs/pyodide/
- name: git status and git diff
run: |
git status
Expand Down
4 changes: 2 additions & 2 deletions panel/_templates/serviceWorker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const appName = 'panel-convert-{{ uuid }}';
const appName = 'Panel-Pyodide-App-{{ uuid }}';

const preCacheFiles = [{{ pre_cache }}];

Expand All @@ -14,7 +14,7 @@ self.addEventListener('install', (e) => {
self.addEventListener('activate', (event) => {
event.waitUntil(
caches.forEach((cache, cacheName) => {
if (cacheName.startsWith('panel-converted') && cacheName !== appName) {
if (cacheName.startsWith('Panel-Pyodide-App') && cacheName !== appName) {
return caches.delete(cacheName);
}
})
Expand Down

0 comments on commit 6dfcb8a

Please sign in to comment.