mirror of
https://github.com/monero-project/monero-gui
synced 2024-11-25 10:47:19 +01:00
Merge pull request #3395
d60bbb7
Wizard: use endsWith, fix todo (selsta)
This commit is contained in:
commit
c47332e2f1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user