6 window
.addEventListener('message', function(e
) {
7 if (e
.data
.tag
=== 'getKeepAwake') {
8 window
.parent
.postMessage({'keepAwake': screen
.keepAwake
}, '*');
9 } else if (e
.data
.tag
=== 'setKeepAwake') {
10 screen
.keepAwake
= e
.data
.keepAwake
;