vd-plugins/NoIdle/index.js
2023-02-27 16:50:07 +00:00

1 line
No EOL
532 B
JavaScript

!function(t,e,n){"use strict";let o;let i=function(){function t(){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t)}var i=t.prototype;return i.onLoad=function(){e.logger.log("Starting NoIdle..."),o=e.patcher.before("dispatch",n.FluxDispatcher,function(t){let[{type:e}]=t;if("IDLE"===e)return[{type:"IDLE",idle:!1}]})},i.onUnload=function(){e.logger.log("Disabling NoIdle.."),o?.()},t}();t.default=i,Object.defineProperty(t,"__esModule",{value:!0})}({},vendetta,vendetta.metro.common);