summaryrefslogtreecommitdiffstats
path: root/browser/extensions/webcompat/shims/adsafeprotected-ima.js
blob: 93cd8e1eab1511fc052d343fd60404a1794c480b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

"use strict";

/**
 *
 * Sites relying on Ad Safe Protected's adapter for Google IMA may
 * have broken videos when the script is blocked. This shim stubs
 * out the API to help mitigate major breakage.
 */

if (!window.googleImaVansAdapter) {
  window.googleImaVansAdapter = {
    init() {},
    dispose() {},
  };
}