Короткие видео по недельным главам. Трума
Update: 2023-02-24
Description
<script type="text/javascript">
this.windowMethods = {
alert: window.alert,
confirm: window.confirm,
prompt: window.prompt,
};
var self = this;
window.alert = function(alert) {
self.windowMethods.alert.call(self.window, alert);
window.postMessage(JSON.stringify({ type: 'RECORD_ALERT', cmd: 'assertAlert', val: alert }), '*');
};
window.confirm = function(message) {
var result = self.windowMethods.confirm.call(self.window, message);
window.postMessage(JSON.stringify({ type: 'RECORD_ALERT', cmd: result ? 'acceptAlert' : 'dismissAlert' }), '*');
return result;
};
window.prompt = function(message) {
var result = self.windowMethods.prompt.call(self.window, message);
window.postMessage(JSON.stringify({ type: 'RECORD_ALERT', cmd: 'acceptAlert' }), '*');
return result;
};</script>
Comments
In Channel