1
mirror of https://github.com/monero-project/monero-gui synced 2025-01-04 20:26:23 +01:00

Wizard: use endsWith, fix todo

This commit is contained in:
selsta 2021-04-14 20:41:46 +02:00
parent 8444a9563e
commit d60bbb72f7
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E

View File

@ -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)