Merge pull request #464 from standardnotes/hotfix/3.3.11

check backup file version first before importing
This commit is contained in:
Baptiste Grob
2020-09-09 17:34:37 +02:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -346,7 +346,7 @@ class AccountMenuCtrl extends PureCtrl {
if (!data) {
return;
}
const version = data?.auth_params?.version || data?.keyParams?.version;
const version = data.version || data.auth_params?.version || data?.keyParams?.version;
if (!protocolManager.supportedVersions().includes(version)) {
this.setState({ importData: null });
this.alertManager.alert({ text: STRING_IMPORT_FAILED_NEWER_BACKUP });

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "standard-notes-web",
"version": "3.3.6",
"version": "3.3.11",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "standard-notes-web",
"version": "3.3.10",
"version": "3.3.11",
"license": "AGPL-3.0-or-later",
"repository": {
"type": "git",