Preparing plugins for no-minify-in-core-policy

also making the file structure better with js and css folders for Realtime and LinkPreview
This commit is contained in:
Mikael Nordfeldth
2014-02-24 00:59:29 +01:00
parent 398491b39b
commit 97830b0701
17 changed files with 12 additions and 31 deletions

View File

@@ -0,0 +1,20 @@
// Update the local timeline from a Meteor server
var MeteorUpdater = function()
{
return {
init: function(server, port, timeline)
{
Meteor.callbacks["process"] = function(data) {
RealtimeUpdate.receive(JSON.parse(data));
};
Meteor.host = server;
Meteor.port = port;
Meteor.joinChannel(timeline, 0);
Meteor.connect();
}
}
}();