[hotfix] get_routes_str compatible with chrome

This commit is contained in:
Anand Doshi 2014-07-25 19:18:30 +05:30
parent 0e1320443f
commit 12c9da2bff

View file

@ -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('/');