16 lines
382 B
JavaScript
16 lines
382 B
JavaScript
|
/* exported enable disable */
|
||
|
const AppDisplay = imports.ui.appDisplay;
|
||
|
|
||
|
let _activateOriginal = null;
|
||
|
|
||
|
function enable() {
|
||
|
_activateOriginal = AppDisplay.AppIcon.prototype.activate;
|
||
|
AppDisplay.AppIcon.prototype.activate = function () {
|
||
|
_activateOriginal.call(this, 2);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
function disable() {
|
||
|
AppDisplay.AppIcon.prototype.activate = _activateOriginal;
|
||
|
}
|