File app offline

pull/1/head
yflory 4 years ago
parent f2ba2957ec
commit ca8623e020

@ -175,6 +175,7 @@ define([
});
}
var todo = function () {
$label.click(function () {
$form.find('input[type="file"]').click();
});
@ -200,6 +201,19 @@ define([
UI.removeLoadingScreen();
};
var checkOnline = function () {
var priv = metadataMgr.getPrivateData();
if (priv.offline) { return; }
metadataMgr.off('change', checkOnline);
todo();
};
if (priv.offline) {
metadataMgr.onChange(checkOnline);
return;
}
todo();
};
var main = function () {
var common;

@ -19,6 +19,7 @@ define([
meta.filehash = Cryptpad.currentPad.hash;
};
SFCommonO.start({
cache: true,
hash: hash,
href: href,
noRealtime: true,

Loading…
Cancel
Save