mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix drive determination
This commit is contained in:
parent
1f1b5ae939
commit
b9e332f84e
@ -3388,9 +3388,7 @@ define([
|
||||
UIElements.displayCrowdfunding = function (common, force) {
|
||||
if (crowdfundingState) { return; }
|
||||
var priv = common.getMetadataMgr().getPrivateData();
|
||||
var inDrive = /^\/drive/;
|
||||
var isDriveContext = inDrive.test(priv.pathname || '');
|
||||
if (isDriveContext) { return; }
|
||||
if (priv.app === 'drive') { return; }
|
||||
if (!priv.channel) { return; }
|
||||
if (priv.app === 'form' && priv.readOnly && !priv.form_auditorHash && !priv.form_auditorKey) { return; }
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user