Created
July 8, 2014 22:04
-
-
Save ccovey/150f958ad37e3820f2ce to your computer and use it in GitHub Desktop.
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
function receiveMessage(e) { | |
if (e.data.numLoves > 0) { | |
OskyPublicLoveButton.getElementsByClassName(button, 'osky-count')[0].innerHTML = e.data.numLoves; | |
OskyPublicLoveButton.disableButton(button); | |
} | |
} | |
window.addEventListener('message', receiveMessage, false); | |
var login = "https://www.opensky.com/login"; | |
var loginWindow = window.open(login, "_blank", 'height=500,width=400'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment