]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixes for making Meteor working with HTTPS.
authorRoland Haeder <roland@mxchange.org>
Mon, 18 Aug 2014 19:59:25 +0000 (21:59 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 18 Aug 2014 19:59:25 +0000 (21:59 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
plugins/Meteor/MeteorPlugin.php
plugins/Meteor/js/meteorupdater.js

index 881dfdc1b3daadb627cc71b60bdb2bc001d8d625..c7d648ed1635798c38f719ab371b36ae6ce91ad4 100644 (file)
@@ -103,9 +103,10 @@ class MeteorPlugin extends RealtimePlugin
     function _updateInitialize($timeline, $user_id)
     {
         $script = parent::_updateInitialize($timeline, $user_id);
-        $ours = sprintf("MeteorUpdater.init(%s, %s, %s);",
+        $ours = sprintf("MeteorUpdater.init(%s, %s, %s, %s);",
                                        json_encode($this->webserver),
                                        json_encode($this->webport),
+                                       json_encode($this->protocol),
                                        json_encode($timeline));
         return $script." ".$ours;
     }
index cdd1d63fabb5f31adaea7da8e2af81b848e3d63b..8e1af13ed68b72fc00d3ce5ad0c88e59259cf5e3 100644 (file)
@@ -4,7 +4,7 @@ var MeteorUpdater = function()
 {
      return {
 
-          init: function(server, port, timeline)
+          init: function(server, port, scheme, timeline)
           {
                Meteor.callbacks["process"] = function(data) {
                     RealtimeUpdate.receive(JSON.parse(data));
@@ -12,6 +12,7 @@ var MeteorUpdater = function()
 
                Meteor.host = server;
                Meteor.port = port;
+               Meteor.scheme = scheme;
                Meteor.joinChannel(timeline, 0);
                Meteor.connect();
           }