MCPcopy Create free account
hub / github.com/Cu-chi/cuchi_computer / MinimizeApp

Function MinimizeApp

nui/scripts/script.js:844–849  ·  view source on GitHub ↗
(appName, callback)

Source from the content-addressed store, hash-verified

842 * @param {function} [callback] function callback
843 */
844const MinimizeApp = (appName, callback) => {
845 document.getElementById("taskbar-"+appName).classList.remove("app-active");
846 document.getElementById("app-"+appName).style.visibility = "hidden";
847
848 if (callback) callback();
849};
850
851/**
852 * Makes an element draggable

Callers 3

script.jsFile · 0.85
OpenAppFunction · 0.85
MessageBoxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected