Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.addEventListener("unhandledrejection", function(t) {
- 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) {
- a = !1;
- var i = document.getElementById("low-power-mode-notification");
- i.classList.add("display"), setTimeout(function() {
- i.classList.add("show")
- }, 1e3), document.getElementById("power-saving-proceed-button").addEventListener("click", function() {
- i.remove()
- }), document.getElementById("power-saving-proceed-button").addEventListener("touchstart", function() {
- i.remove()
- })
- }
- }), document.addEventListener("DOMContentLoaded", function(t) {
- var i = document.querySelector(".card"),
- s = i ? i.querySelector("video[autoplay]") : void 0;
- s && s.play()
Advertisement
Add Comment
Please, Sign In to add comment