Skip to content

Commit

Permalink
check theme zip file and content path
Browse files Browse the repository at this point in the history
  • Loading branch information
sunwei committed Nov 24, 2024
1 parent b4455e6 commit 9b6beef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "mdfriday",
"name": "Friday",
"version": "0.1.4",
"version": "0.1.5",
"minAppVersion": "0.15.0",
"description": "Notes to Website. Friday helps you turn Markdown documents into websites in minutes.",
"author": "sunwei",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-friday-plugin",
"version": "0.1.4",
"version": "0.1.5",
"description": "Friday is an Obsidian plugin that empowers users to focus on content creation by writing Markdown files, while we handle the distribution. From creating websites to content deployment, Friday serves as a creative output assistant, helping users turn their work into publishable sites with ease.",
"main": "main.js",
"scripts": {
Expand Down
4 changes: 1 addition & 3 deletions src/svelte/Service.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
let downloadProgress = 0;
let isDownloading = false;
let displayDownload = true;
let themeZipFileExists = false;
onMount(async () => {
Expand All @@ -47,14 +46,13 @@
themeZipFileExists = true;
}
displayDownload = !(themeZipFileExists && await app.vault.adapter.exists(themeProjPath));
}
}
const downloadFile = async () => {
await refreshDownloadStatus()
if (!displayDownload){
if (themeZipFileExists && await app.vault.adapter.exists(themeContentPath)){
return
}
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"0.1.4": "0.15.0"
"0.1.5": "0.15.0"
}

0 comments on commit 9b6beef

Please sign in to comment.