Skip to content

Instantly share code, notes, and snippets.

@jglass
Created June 26, 2020 18:54
Show Gist options
  • Save jglass/330ec9d95197015eef100e330c4983e9 to your computer and use it in GitHub Desktop.
Save jglass/330ec9d95197015eef100e330c4983e9 to your computer and use it in GitHub Desktop.
<% if Rails.env.staging? %>
<% domain = "www.dailykosbeta.com" %>
<% else %>
<% domain = "www.dailykos.com" %>
<% end %>
<% if non_test_env? %>
... #javascript is the same except for line below
_sf_async_config.domain = "<%= domain %>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment