We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8db5808 commit d2d7756Copy full SHA for d2d7756
1 file changed
app/assets/javascripts/beak/tortoise-utils.coffee
@@ -5,7 +5,7 @@ getBase64IfResource = (node, data) ->
5
if data.tagName is 'img'
6
name = node.getAttribute('src')
7
8
- if workspace.resources.hasOwnProperty(name)
+ if typeof workspace isnt 'undefined' and workspace.resources.hasOwnProperty(name)
9
resource = workspace.resources[name]
10
node.setAttribute('src', "data:image/#{resource.extension};base64,#{resource.data}")
11
0 commit comments