Display the error when opening a document with the wrong app
This commit is contained in:
1 parent
6f0d33dc1d
commit
7e7d1f7a16
4 files changed
+9
-2
No files matched your search
+3
-1
@@ -558,7 +558,9 @@ define([
|
||||
var hjson = JSON.parse(userDoc);
|
||||
|
||||
if (typeof (hjson) !== 'object' || Array.isArray(hjson)) {
|
||||
throw new Error("That realtime document is not compatible with the Code app");
|
||||
var errorText = Messages.typeError;
|
||||
Cryptpad.errorLoadingScreen(errorText);
|
||||
throw new Error(errorText);
|
||||
}
|
||||
|
||||
newDoc = hjson.content;
|
||||
|
||||
Reference in new issue
Block a user