Created
December 1, 2016 07:42
-
-
Save deflexor/dd25abe2f24cdb2d5afc2147cc1b3b99 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
<script src="https://vk.com/js/api/xd_connection.js?2" type="text/javascript"></script> | |
<script type="text/javascript"> | |
function onInit() { | |
console.log("Post ID"); | |
} | |
VK.init(function() { | |
// API initialization succeeded | |
// Your code here | |
onInit(); | |
}, function() { | |
// API initialization failed | |
// Can reload page here | |
}, '5.60'); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment