Skip to content
Permalink
Browse files

10.0.22 release

  • Loading branch information...
alderg committed Jan 5, 2019
1 parent 0b59dae commit dda53dda284c738bd28c304d5011fedee76500da
@@ -1,3 +1,9 @@
05-JAN-2019: 10.0.22

- Adds initial change check in sync protocol
- Ignores numeric JS errors in checksum
- Fixes pending sync on inactive window

04-JAN-2019: 10.0.21

- Adds debug output for checksum errors
@@ -1 +1 @@
10.0.21
10.0.22
@@ -1,7 +1,7 @@
CACHE MANIFEST

# THIS FILE WAS GENERATED. DO NOT MODIFY!
# 01/04/2019 06:00 PM
# 01/05/2019 02:00 PM

app.html
index.html?offline=1

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1358,16 +1358,30 @@ DrawioFile.prototype.redirectToNewApp = function(error)

var redirect = mxUtils.bind(this, function()
{
this.ui.spinner.spin(document.body, mxResources.get('loading'));
this.redirectDialogShowing = false;
var fn = mxUtils.bind(this, function()
{
this.redirectDialogShowing = false;

if (window.location.href == url)
{
window.location.reload();
}
else
{
window.location.href = url;
}
});

if (window.location.href == url)
if (this.isModified())
{
window.location.reload();
this.ui.confirm(mxResources.get('allChangesLost'), mxUtils.bind(this, function()
{
this.redirectDialogShowing = false;
}), fn, mxResources.get('cancel'), mxResources.get('discardChanges'));
}
else
{
window.location.href = url;
fn();
}
});

@@ -1574,25 +1588,47 @@ DrawioFile.prototype.fileChanged = function()
*/
DrawioFile.prototype.fileSaved = function(savedData, lastDesc, success, error)
{
this.inConflictState = false;
this.invalidChecksum = false;
this.checkPages();

if (this.sync == null)
try
{
this.shadowData = savedData;
this.shadowPages = null;
this.inConflictState = false;
this.invalidChecksum = false;
this.checkPages();

if (success != null)
if (this.sync == null)
{
success();
this.shadowData = savedData;
this.shadowPages = null;

if (success != null)
{
success();
}
}
else
{
this.sync.fileSaved(this.ui.getPagesForNode(
mxUtils.parseXml(savedData).documentElement),
lastDesc, success, error);
}
}
else
catch (e)
{
this.sync.fileSaved(this.ui.getPagesForNode(
mxUtils.parseXml(savedData).documentElement),
lastDesc, success, error);
this.inConflictState = true;
this.invalidChecksum = true;

if (error != null)
{
error(e);
}

try
{
this.sendErrorReport('Error in fileSaved', null, e);
}
catch (e2)
{
// ignore
}
}
};

Oops, something went wrong.

0 comments on commit dda53dd

Please sign in to comment.
You can’t perform that action at this time.