diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-04-16 12:55:37 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-04-16 12:55:37 -0500 |
| commit | c47332e2f1279066e63c9ffdc9fdb8bb6c8b930f (patch) | |
| tree | 318dac1df5100d469b8f4af0f46671994f40d2e2 | |
| parent | 7dcd33f203f3aca3793a5d84e4dbe152ac9a56ea (diff) | |
| parent | d60bbb72f7d60e51d8f2d435e2d8c006aee209b9 (diff) | |
| download | monzero-gui-c47332e2f1279066e63c9ffdc9fdb8bb6c8b930f.tar.gz monzero-gui-c47332e2f1279066e63c9ffdc9fdb8bb6c8b930f.tar.xz monzero-gui-c47332e2f1279066e63c9ffdc9fdb8bb6c8b930f.zip | |
Merge pull request #3395
d60bbb7 Wizard: use endsWith, fix todo (selsta)
| -rw-r--r-- | js/Wizard.js | 5 |
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) |
