mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix small errors
This commit is contained in:
parent
b9e332f84e
commit
0fd5edb929
@ -1068,10 +1068,10 @@ define([
|
||||
};
|
||||
var privateData = ctx.metadataMgr.getPrivateData();
|
||||
var isDriveContext = privateData.app === 'drive';
|
||||
var isReadOnlyFormResponse = privateData.app === 'form' && priv.readOnly && !priv.form_auditorHash && !priv.form_auditorKey;
|
||||
var isReadOnlyFormResponse = privateData.app === 'form' && privateData.readOnly && !privateData.form_auditorHash && !privateData.form_auditorKey;
|
||||
var skipCrowdfunding = privateData.secureIframe === true || privateData.unsafeIframe === true || isReadOnlyFormResponse || isDriveContext;
|
||||
if (!skipCrowdfunding) {
|
||||
ctx.sframeChan.query('Q_CROWDFUNDING_INCREMENT_OPEN', showCrowdfunding);
|
||||
ctx.sframeChan.query('Q_CROWDFUNDING_INCREMENT_OPEN', {}, showCrowdfunding);
|
||||
}
|
||||
|
||||
ctx.sframeChan.ready();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user