File size: 941 Bytes
1e40c2a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
window.InitRV = function InitRV(id) {
$.getScript("https://static.ultra-rv.com/rv-min.js", function () {
let userId = id === undefined ? "Guest" : id;
let ironRV = IronRV.getInstance({
applicationKey: "1-mb5whk",
applicationUserId: userId,
});
ironRV.addListener(IronRV.EVENTS.READY, function () {
gameInstance.SendMessage("MainMenuManagers", "RvReady");
});
ironRV.addListener(IronRV.EVENTS.CLOSE, function () {
gameInstance.SendMessage("MainMenuManagers", "RvWatchComplete", "false");
});
ironRV.addListener(IronRV.EVENTS.COMPLETION, function () {
gameInstance.SendMessage("MainMenuManagers", "RvWatchComplete", "true");
});
ironRV.addListener(IronRV.EVENTS.AD_BLOCK, function () {
ironRV.showAdBlockMessage();
});
ironRV.addListener(IronRV.EVENTS.INIT_ERROR, function () {
});
window.showRV = () => {
ironRV.show();
};
});
}
|