Skip to content

Instantly share code, notes, and snippets.

@mchail
Created April 17, 2013 00:48
Show Gist options
  • Save mchail/5400899 to your computer and use it in GitHub Desktop.
Save mchail/5400899 to your computer and use it in GitHub Desktop.
// http://localhost:26843/client_is_running.js
function client_is_running() { return 1; }
function viewInHitBliss(uri) {
if (typeof window.client_is_running === 'function' && client_is_running()) {
window.location = uri;
} else {
window.location = '/download.html';
}
}
<a href="javascript:viewInHitBliss('hitbliss:i=6734');" class="button large">View in HitBliss</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment