Gaudenz Alder 6 gadi atpakaļ
vecāks
revīzija
0546ab063c

+ 1 - 1
src/main/webapp/cache.manifest

@@ -1,7 +1,7 @@
 CACHE MANIFEST
 
 # THIS FILE WAS GENERATED. DO NOT MODIFY!
-# 03/15/2019 10:34 AM
+# 03/15/2019 10:51 AM
 
 app.html
 index.html?offline=1

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 4 - 4
src/main/webapp/js/app.min.js


+ 2 - 1
src/main/webapp/js/diagramly/App.js

@@ -1041,7 +1041,8 @@ App.prototype.init = function()
 						this.restoreLibraries();
 						this.checkLicense();
 						
-						if (!isLocalStorage || mxSettings.settings == null || mxSettings.settings.closeRealtimeWarning == null)
+						if (this.drive.user != null && (!isLocalStorage || mxSettings.settings == null ||
+							mxSettings.settings.closeRealtimeWarning == null))
 						{
 							this.drive.checkRealtimeFiles(mxUtils.bind(this, function()
 							{

+ 2 - 2
src/main/webapp/js/diagramly/DriveClient.js

@@ -2441,7 +2441,7 @@ DriveClient.prototype.jsonToCell = function(val, codec)
  */
 DriveClient.prototype.checkRealtimeFiles = function(fn)
 {
-	var email = (this.user.email != null) ? this.user.email : null;
+	var email = (this.user != null && this.user.email != null) ? this.user.email : null;
 	
 	this.executeRequest(gapi.client.drive.files.list({'maxResults': 1, 'q':
 		'mimeType=\'application/vnd.jgraph.mxfile.realtime\'' +
@@ -2491,7 +2491,7 @@ DriveClient.prototype.convertRealtimeFiles = function()
 			var total = 0;
 			var queryFail = 0;
 
-			var email = (this.user.email != null) ? this.user.email : null;
+			var email = (this.user != null && this.user.email != null) ? this.user.email : null;
 			var q = 'mimeType=\'application/vnd.jgraph.mxfile.realtime\'' +
 				((email != null) ? ' and \'' + email + '\' in writers' : '');