make context menu open correct app on correct port

pull/1/head
ansuz 7 years ago
parent deed04108b
commit c936e5ae73

@ -2640,7 +2640,7 @@ define([
else if ($(this).hasClass("cp-app-drive-context-newdoc")) {
var type = $(this).data('type') || 'pad';
sessionStorage[Cryptpad.newPadPathKey] = filesOp.isPathIn(currentPath, [TRASH]) ? '' : currentPath;
window.open('/' + type + '/');
window.open(APP.origin + '/' + type + '/');
}
APP.hideMenu();
});

Loading…
Cancel
Save