[hotfix] get_routes_str compatible with chrome
This commit is contained in:
parent
0e1320443f
commit
12c9da2bff
1 changed files with 6 additions and 2 deletions
|
|
@ -64,8 +64,12 @@ frappe.get_route_str = function(route) {
|
|||
route = $.map(route.split('/'), function(r) {
|
||||
try {
|
||||
return decodeURIComponent(r);
|
||||
} catch(e if e instanceof URIError) {
|
||||
return r;
|
||||
} catch(e) {
|
||||
if (e instanceof URIError) {
|
||||
return r;
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
}).join('/');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue