diff --git a/plugins/tiddlywiki/sqlite3store/rawmarkup-bottombody.js b/plugins/tiddlywiki/sqlite3store/rawmarkup-bottombody.js index bccc5dba5..06a32e35e 100644 --- a/plugins/tiddlywiki/sqlite3store/rawmarkup-bottombody.js +++ b/plugins/tiddlywiki/sqlite3store/rawmarkup-bottombody.js @@ -8,7 +8,35 @@ Startup code injected as raw markup at the bottom of the body section (function() { +// Get the main tiddler store +var storeEl = document.querySelector("script.tiddlywiki-tiddler-store"); +var tiddlerStore = JSON.parse(storeEl.textContent); + +function getTiddler(title) { + for(var t=0; t` -{{$:/plugins/tiddlywiki/sqlite3store/sqlite3.js}} -`var sqlite3wasm = "`<$text text={{$:/plugins/tiddlywiki/sqlite3store/sqlite3.wasm}}/>`";` {{$:/plugins/tiddlywiki/sqlite3store/rawmarkup-bottombody.js}} ``