Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33ebc07915 | ||
|
|
bc07299626 | ||
|
|
25e8aeef53 |
@@ -751,12 +751,12 @@ class SettingsPage extends Vue {
|
|||||||
dangerouslyUseHTMLString: true,
|
dangerouslyUseHTMLString: true,
|
||||||
confirmButtonText: 'OK',
|
confirmButtonText: 'OK',
|
||||||
cancelButtonText: 'Отмена',
|
cancelButtonText: 'Отмена',
|
||||||
inputValidator: (str) => { if (str && str.length == 44) return true; else return 'Неверный формат ключа'; },
|
inputValidator: (str) => { if (str && utils.fromBase58(str).length == 32) return true; else return 'Неверный формат ключа'; },
|
||||||
inputValue: (key && _.isString(key) ? key : null),
|
inputValue: (key && _.isString(key) ? key : null),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
});
|
});
|
||||||
|
|
||||||
if (result.value && result.value.length == 44) {
|
if (result.value && utils.fromBase58(result.value).length == 32) {
|
||||||
this.commit('reader/setServerStorageKey', result.value);
|
this.commit('reader/setServerStorageKey', result.value);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Liberama",
|
"name": "Liberama",
|
||||||
"version": "0.6.2",
|
"version": "0.6.3",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10.0.0"
|
"node": ">=10.0.0"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user