Fix tests
This commit is contained in:
parent
e37aab492b
commit
e1473dff79
@ -717,8 +717,8 @@ define([
|
|||||||
|
|
||||||
Utils.Feedback.reportAppUsage();
|
Utils.Feedback.reportAppUsage();
|
||||||
|
|
||||||
if (!realtime) { return; }
|
if (!realtime && !Test.testing) { return; }
|
||||||
if (isNewFile && cfg.useCreationScreen) { return; }
|
if (isNewFile && cfg.useCreationScreen && !Test.testing) { return; }
|
||||||
//if (isNewFile && Utils.LocalStore.isLoggedIn()
|
//if (isNewFile && Utils.LocalStore.isLoggedIn()
|
||||||
// && AppConfig.displayCreationScreen && cfg.useCreationScreen) { return; }
|
// && AppConfig.displayCreationScreen && cfg.useCreationScreen) { return; }
|
||||||
|
|
||||||
|
|||||||
@ -170,6 +170,7 @@ define([
|
|||||||
|
|
||||||
// Store
|
// Store
|
||||||
funcs.handleNewFile = function (waitFor) {
|
funcs.handleNewFile = function (waitFor) {
|
||||||
|
if (window.__CRYPTPAD_TEST__) { return; }
|
||||||
var priv = ctx.metadataMgr.getPrivateData();
|
var priv = ctx.metadataMgr.getPrivateData();
|
||||||
if (priv.isNewFile) {
|
if (priv.isNewFile) {
|
||||||
var c = (priv.settings.general && priv.settings.general.creation) || {};
|
var c = (priv.settings.general && priv.settings.general.creation) || {};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user