Skip to content

Commit aec033d

Browse files
committed
Fix _throwOnError to handle verifyDecryptionKey boolean
1 parent b825a7b commit aec033d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/shutter-crypto/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function _checkInitialized() {
5858
}
5959

6060
function _throwOnError(result) {
61-
if (result.startsWith("Error:")) {
61+
if (typeof result === "string" && result.startsWith("Error:")) {
6262
throw result;
6363
}
6464
}

0 commit comments

Comments
 (0)