PageSourceSearch

https://virasty.com/2716.616116f.js

js virasty.com collected 2026-10-02 07:25:16 UTC 1,239 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmicroblog=self.webpackChunkmicroblog||[]).push([[2716],{2716(e,i,t){t.d(i,{KeepAwakeWeb:()=>a});var s=t(16546);class a extends s.WebPlugin{constructor(){super(...arguments),this.wakeLock=null,this._isSupported="u">typeof navigator&&"wakeLock"in navigator,this.handleVisibilityChange=()=>{"visible"===document.visibilityState&&this.keepAwake()}}async keepAwake(){this._isSupported||this.throwUnsupportedError(),this.wakeLock&&await this.allowSleep(),this.wakeLock=await navigator.wakeLock.request("screen"),document.addEventListener("visibilitychange",this.handleVisibilityChange),document.addEventListener("fullscreenchange",this.handleVisibilityChange)}async allowSleep(){var e;this._isSupported||this.throwUnsupportedError(),null==(e=this.wakeLock)||e.release(),this.wakeLock=null,document.removeEventListener("visibilitychange",this.handleVisibilityChange),document.removeEventListener("fullscreenchange",this.handleVisibilityChange)}async isSupported(){return{isSupported:this._isSupported}}async isKeptAwake(){return this._isSupported||this.throwUnsupportedError(),{isKeptAwake:!!this.wakeLock}}throwUnsupportedError(){throw this.unavailable("Screen Wake Lock API not available in this browser.")}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.