diff --git a/repository/TiddlyWiki/TiddlyWiki.class.st b/repository/TiddlyWiki/TiddlyWiki.class.st index 3cc7ceb..43b7229 100644 --- a/repository/TiddlyWiki/TiddlyWiki.class.st +++ b/repository/TiddlyWiki/TiddlyWiki.class.st @@ -228,6 +228,10 @@ TiddlyWiki >> downloadHTML [ ^ self folder ] +{ #category : #accessing } +TiddlyWiki >> downloadJSONCache [ +] + { #category : #accessing } TiddlyWiki >> exportCommonTiddlers [ @@ -831,8 +835,11 @@ TiddlyWiki >> remote: aUrlString [ { #category : #accessing } TiddlyWiki >> remoteTiddlersContentsString [ + | jsonAddress | self isInTiddlyHost ifFalse: [ ^ self ]. - ^ (self remote asString, '/tiddlers.json') asZnUrl retrieveContents. + jsonAddress := self remote asString, '/tiddlers.json'. + ^ [jsonAddress asZnUrl retrieveContents] + onErrorDo: [ self downloadJSONCache ]. ] { #category : #accessing }