mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix creation of pads from non-root category in the drive
This commit is contained in:
parent
7e7d1f7a16
commit
9f1789b2d2
@ -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)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user