mirror of
https://codeberg.org/valpackett/tiddlypwa.git
synced 2026-03-15 04:10:25 -07:00
Plugin: treat $:/languages/ like themes/plugins
This commit is contained in:
parent
fa77d6c906
commit
1e423aaea7
2 changed files with 6 additions and 2 deletions
|
|
@ -1,3 +1,3 @@
|
|||
title: $:/plugins/valpackett/tiddlypwa/app-filter
|
||||
|
||||
-[is[tiddler]] [[$:/core]] [[$:/favicon.ico]] [[$:/SiteTitle]] [[$:/SiteSubtitle]] [[$:/language]] [[$:/theme]] [[$:/palette]] [prefix[$:/themes/]] [prefix[$:/plugins/]]
|
||||
-[is[tiddler]] [[$:/core]] [[$:/favicon.ico]] [[$:/SiteTitle]] [[$:/SiteSubtitle]] [[$:/language]] [[$:/theme]] [[$:/palette]] [prefix[$:/themes/]] [prefix[$:/plugins/]] [prefix[$:/languages/]]
|
||||
|
|
|
|||
|
|
@ -542,7 +542,11 @@ Formatted with `deno fmt`.
|
|||
// For some reason this is not in the default $:/config/SyncFilter but no one would want this actually stored.
|
||||
return cb(null, '', 1);
|
||||
}
|
||||
if (tiddler.fields.title.startsWith('$:/themes/') || tiddler.fields.title.startsWith('$:/plugins/')) {
|
||||
if (
|
||||
tiddler.fields.title.startsWith('$:/themes/') ||
|
||||
tiddler.fields.title.startsWith('$:/plugins/') ||
|
||||
tiddler.fields.title.startsWith('$:/languages/')
|
||||
) {
|
||||
// Those should go into the saved wiki file.
|
||||
// Attempting to only direct the `doesPluginRequireReload` ones into the file does not seem worth it.
|
||||
// By ignoring the callback we make TW think there's something unsaved now, which there is!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue