Skip to content

Commit d2d7756

Browse files
committed
HNW/Bugfix: Standalone info tab page has no workspace
The workspace was used for embedded resources, but it won't work in standalone info tabs.
1 parent 8db5808 commit d2d7756

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/assets/javascripts/beak/tortoise-utils.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ getBase64IfResource = (node, data) ->
55
if data.tagName is 'img'
66
name = node.getAttribute('src')
77

8-
if workspace.resources.hasOwnProperty(name)
8+
if typeof workspace isnt 'undefined' and workspace.resources.hasOwnProperty(name)
99
resource = workspace.resources[name]
1010
node.setAttribute('src', "data:image/#{resource.extension};base64,#{resource.data}")
1111

0 commit comments

Comments
 (0)