Merge branch 'dark' of github.com:xwiki-labs/cryptpad into dark

pull/1/head
ansuz 2021-02-08 16:13:45 +05:30
commit c079471249
1 changed files with 4 additions and 2 deletions

View File

@ -2107,11 +2107,13 @@ define([
var privateData = metadataMgr.getPrivateData();
if (privateData.offline) {
metadataMgr.onChange(function () {
var onChange = function () {
var privateData = metadataMgr.getPrivateData();
if (privateData.offline) { return; }
UIElements.getPadCreationScreen(common, cfg, appCfg, cb);
});
metadataMgr.off('change', onChange);
};
metadataMgr.onChange(onChange);
return;
}