MCPcopy Create free account
hub / github.com/ampproject/amphtml / toggleFullscreen

Function toggleFullscreen

ads/google/ima/ima-video.js:1255–1261  ·  view source on GitHub ↗

* @param {object} global

(global)

Source from the content-addressed store, hash-verified

1253 * @param {object} global
1254 */
1255function toggleFullscreen(global) {
1256 if (fullscreen) {
1257 exitFullscreen(global);
1258 return;
1259 }
1260 enterFullscreen(global);
1261}
1262
1263/**
1264 * Called when the fullscreen mode of the browser or content player changes.

Callers

nothing calls this directly

Calls 2

exitFullscreenFunction · 0.85
enterFullscreenFunction · 0.85

Tested by

no test coverage detected