Implementing download of wikis embedding binary data (i.e. raster images)

This commit is contained in:
Offray Vladimir Luna Cárdenas 2024-07-28 10:55:40 -05:00
parent 46565aa522
commit fd50a12732

View File

@ -228,6 +228,10 @@ TiddlyWiki >> downloadHTML [
^ self folder ^ self folder
] ]
{ #category : #accessing }
TiddlyWiki >> downloadJSONCache [
]
{ #category : #accessing } { #category : #accessing }
TiddlyWiki >> exportCommonTiddlers [ TiddlyWiki >> exportCommonTiddlers [
@ -831,8 +835,11 @@ TiddlyWiki >> remote: aUrlString [
{ #category : #accessing } { #category : #accessing }
TiddlyWiki >> remoteTiddlersContentsString [ TiddlyWiki >> remoteTiddlersContentsString [
| jsonAddress |
self isInTiddlyHost ifFalse: [ ^ self ]. 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 } { #category : #accessing }