Last active
December 20, 2015 06:59
-
-
Save alivedise/6089691 to your computer and use it in GitHub Desktop.
system message handler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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