Skip to content

Instantly share code, notes, and snippets.

@alivedise
Last active December 20, 2015 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alivedise/6089691 to your computer and use it in GitHub Desktop.
Save alivedise/6089691 to your computer and use it in GitHub Desktop.
system message handler
// system-message-handler
if (activity && disposition == 'inline') {
startInlineActivity(...);
return;
}
if (theTargetIsNotRunning) {
appendFrame();
} else if (!doNotReload) {
doReplaceTheURLOfTheTargetFrame();
} else {
// the app is running but we don't want to replace the URL so do nothing
}
if (activity) {
setDisplayedApp();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment