Skip to content

Instantly share code, notes, and snippets.

@voxpelli
Created March 28, 2014 13:20
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 voxpelli/36b6485da8c54e98243c to your computer and use it in GitHub Desktop.
Save voxpelli/36b6485da8c54e98243c to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My IndieWeb Config</title>
</head>
<body>
<script type="text/javascript">
(function() {
if (window.self !== window.top) {
window.parent.window.postMessage(JSON.stringify({
reply : "http://example.com/reply?src=$1"
subscribe : "http://example.com/subscribe?src=$1"
}), '*');
}
})();
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment