aboutsummaryrefslogtreecommitdiff
path: root/js/Wizard.js
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2021-04-14 20:41:46 +0200
committerselsta <selsta@sent.at>2021-04-14 21:34:17 +0200
commitd60bbb72f7d60e51d8f2d435e2d8c006aee209b9 (patch)
tree2fef6bfb0815c24cd86cf2fb59d4095f54cef30f /js/Wizard.js
parent8444a9563e959fb8cac599b0178faae33eada25d (diff)
downloadmonzero-gui-d60bbb72f7d60e51d8f2d435e2d8c006aee209b9.tar.gz
monzero-gui-d60bbb72f7d60e51d8f2d435e2d8c006aee209b9.tar.xz
monzero-gui-d60bbb72f7d60e51d8f2d435e2d8c006aee209b9.zip
Wizard: use endsWith, fix todo
Diffstat (limited to 'js/Wizard.js')
-rw-r--r--js/Wizard.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/Wizard.js b/js/Wizard.js
index 52c43a84..d7f661a1 100644
--- a/js/Wizard.js
+++ b/js/Wizard.js
@@ -69,10 +69,7 @@ function walletPathExists(accountsDir, directory, filename, isIOS, walletManager
if(!filename || filename === "") return false;
if(!directory || directory === "") return false;
- // make sure directory endswith path seperator
- // @TODO: use .endswith() after Qt 5.8
- var trailing_path_sep = directory[directory.length-1];
- if(trailing_path_sep !== "/" && trailing_path_sep !== "\\")
+ if (!directory.endsWith("/") && !directory.endsWith("\\"))
directory += "/"
if(isIOS)