Skip to content

Commit d838370

Browse files
author
Wolfgang Ginolas
committed
Fix error preventing save of fresh diagram
1 parent 08c677f commit d838370

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
import cryptPadIcon from '../img/app-dark.svg'
1717
import diagramIcon from '../img/diagram.svg'
1818

19-
2019
__webpack_nonce__ = btoa(getRequestToken()) // eslint-disable-line
2120
__webpack_public_path__ = generateFilePath('openincryptpad', '', 'js/') // eslint-disable-line
2221

@@ -37,7 +36,7 @@ function openInCryptPad(fileId, filePath, mimeType, backLink, isShared, fileName
3736
path: filePath,
3837
mimeType,
3938
back: backLink,
40-
isShared,
39+
isShared: !isShared || isShared === 'false' ? 'false' : 'true',
4140
fileName,
4241
})
4342
}

0 commit comments

Comments
 (0)