]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use minified version of meteorupdater.js
authorEvan Prodromou <evan@status.net>
Wed, 17 Nov 2010 17:22:02 +0000 (12:22 -0500)
committerEvan Prodromou <evan@status.net>
Wed, 17 Nov 2010 17:22:02 +0000 (12:22 -0500)
plugins/Meteor/MeteorPlugin.php
plugins/Meteor/meteorupdater.min.js [new file with mode: 0644]

index a48c52b5691acab1d703acf53882cf0168c60828..1bdccae7a82085fe331d2c711e642125ee30a3e3 100644 (file)
@@ -89,7 +89,7 @@ class MeteorPlugin extends RealtimePlugin
     {
         $scripts = parent::_getScripts();
         $scripts[] = 'http://'.$this->webserver.(($this->webport == 80) ? '':':'.$this->webport).'/meteor.js';
-        $scripts[] = common_path('plugins/Meteor/meteorupdater.js');
+        $scripts[] = common_path('plugins/Meteor/meteorupdater.min.js');
         return $scripts;
     }
 
diff --git a/plugins/Meteor/meteorupdater.min.js b/plugins/Meteor/meteorupdater.min.js
new file mode 100644 (file)
index 0000000..61928ab
--- /dev/null
@@ -0,0 +1 @@
+var MeteorUpdater=function(){return{init:function(c,a,b){Meteor.callbacks.process=function(d){RealtimeUpdate.receive(JSON.parse(d))};Meteor.host=c;Meteor.port=a;Meteor.joinChannel(b,0);Meteor.connect()}}}();
\ No newline at end of file