Guest User

Untitled

a guest
Nov 3rd, 2018
1,234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     window.addEventListener("unhandledrejection", function(t) {
  2.         if (a && "The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission." === t.reason.message && t.reason.stack.indexOf("play") >= 0) {
  3.             a = !1;
  4.             var i = document.getElementById("low-power-mode-notification");
  5.             i.classList.add("display"), setTimeout(function() {
  6.                 i.classList.add("show")
  7.             }, 1e3), document.getElementById("power-saving-proceed-button").addEventListener("click", function() {
  8.                 i.remove()
  9.             }), document.getElementById("power-saving-proceed-button").addEventListener("touchstart", function() {
  10.                 i.remove()
  11.             })
  12.         }
  13.     }), document.addEventListener("DOMContentLoaded", function(t) {
  14.         var i = document.querySelector(".card"),
  15.             s = i ? i.querySelector("video[autoplay]") : void 0;
  16.         s && s.play()
Advertisement
Add Comment
Please, Sign In to add comment