// Update the user list (metadata) from the hyperjson
updateMetadata(shjson);
varnewPad=false;
if(shjson==='[]'){newPad=true;}
if(Visible.isSupported()){
Visible.onChange(function(yes){
if(yes){unnotify();}
});
}
if(!newPad){
applyHjson(shjson);
if(!readOnly){
varshjson2=stringifyDOM(inner);
varhjson2=JSON.parse(shjson2).slice(0,-1);
varhjson=JSON.parse(shjson).slice(0,-1);
if(stringify(hjson2)!==stringify(hjson)){
console.log('err');
console.error("shjson2 !== shjson");
Cryptpad.errorLoadingScreen("Unable to display the content of that realtime session in your browser. Please try to reload that page.");// TODO translate
thrownewError();
// Update the user list (metadata) from the hyperjson
updateMetadata(shjson);
if(Visible.isSupported()){
Visible.onChange(function(yes){
if(yes){unnotify();}
});
}
if(!readOnly){
varshjson2=stringifyDOM(inner);
varhjson2=JSON.parse(shjson2).slice(0,-1);
varhjson=JSON.parse(shjson).slice(0,-1);
if(stringify(hjson2)!==stringify(hjson)){
console.log('err');
console.error("shjson2 !== shjson");
Cryptpad.errorLoadingScreen("Unable to display the content of that realtime session in your browser. Please try to reload that page.");// TODO translate