Fix creation of pads from non-root category in the drive

pull/1/head
yflory 2017-02-06 14:47:37 +01:00
parent 7e7d1f7a16
commit 9f1789b2d2
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ define([
var patharr = window.location.hash.match(/[?&]path=([^&]+)/);
var namearr = window.location.hash.match(/[?&]name=([^&]+)/);
common.initialPath = patharr[1] || undefined;
common.initialName = namearr[1] ? decodeURIComponent(namearr[1]) : undefined;
common.initialName = namearr && namearr[1] ? decodeURIComponent(namearr[1]) : undefined;
window.location.hash = '';
}
if (!secretHash && !/#/.test(window.location.href)) {