[Libreoffice-commits] online.git: loleaflet/src

Pranav Kant pranavk at collabora.co.uk
Mon Nov 7 04:58:09 UTC 2016


 loleaflet/src/map/Map.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 216d1b6a521cbf5de86b8cdc10f9a5da1e7a76a0
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Thu Oct 27 17:12:30 2016 +0530

    Undefined variable
    
    Change-Id: I0c5a07fa383523053ca7de319fcc9d1acdca63cd

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 0181cc6..be634aa 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -185,7 +185,7 @@ L.Map = L.Evented.extend({
 	},
 
 	WOPIPostMessage: function(msgId, values) {
-		if (this.options.storageType === 'wopi' && this._wopiPostMessageOrigin !== '') {
+		if (this.options.storageType === 'wopi' && !!this._wopi['PostMessageOrigin']) {
 			if (window.top !== window.self) {
 				var msg = {
 					'MessageId': msgId,


More information about the Libreoffice-commits mailing list