1 line
790 B
JavaScript
1 line
790 B
JavaScript
(function(t,u,o){"use strict";function c(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function f(e,n){for(var l=0;l<n.length;l++){var a=n[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,n,l){return n&&f(e.prototype,n),l&&f(e,l),e}let i;var g=new(function(){function e(){c(this,e)}return r(e,[{key:"onLoad",value:function(){u.logger.log("Starting NoIdle..."),i=u.patcher.before("dispatch",o.FluxDispatcher,function(n){let[{type:l}]=n;if(l==="IDLE")return[{type:"IDLE",idle:!1}]})}},{key:"onUnload",value:function(){u.logger.log("Disabling NoIdle.."),i?.()}}]),e}());return t.default=g,Object.defineProperty(t,"__esModule",{value:!0}),t})({},vendetta,vendetta.metro.common);
|