Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (19 sloc) 1.018 kb
document.domain = document.domain;
<% includes = production? ? true : params[:inc] == "1" %>
// Include spinderella
<% if includes %>
<%= File.read(File.join(APP_ROOT, "public", "Orbited.js")) %>
<%= File.read(File.join(APP_ROOT, "public", "spinderella-min.js")) %>
<% end %>
TCPSocket = Orbited.TCPSocket;
Orbited.settings.port = <%= Yajl::Encoder.encode(@orbited_config.port) %>;
Orbited.settings.hostname = <%= Yajl::Encoder.encode(params[:from] || @orbited_config.host) %>;
<% if includes %>
<%= File.read(File.join(APP_ROOT, "public", "chainsaw-base.js")) %>
<%= File.read(File.join(APP_ROOT, "public", "chainsaw-util.js")) %>
<%= File.read(File.join(APP_ROOT, "public", "chainsaw-twitter.js")) %>
<%= File.read(File.join(APP_ROOT, "public", "chainsaw-irc.js")) %>
<% end %>
Chainsaw.callbackUrl = <%= Yajl::Encoder.encode(live_url("/recent/?")) %>;
Chainsaw.host = <%= Yajl::Encoder.encode(@config.host) %>;
Chainsaw.port = <%= Yajl::Encoder.encode(@config.public_port) %>;
Jump to Line
Something went wrong with that request. Please try again.