Blame extensions/launch-new-instance/extension.js
|
Packit |
8fda33 |
/* exported enable disable */
|
|
Packit |
8fda33 |
const AppDisplay = imports.ui.appDisplay;
|
|
Packit |
8fda33 |
|
|
Packit |
8fda33 |
let _activateOriginal = null;
|
|
Packit |
8fda33 |
|
|
Packit |
8fda33 |
function enable() {
|
|
Packit |
8fda33 |
_activateOriginal = AppDisplay.AppIcon.prototype.activate;
|
|
Packit |
8fda33 |
AppDisplay.AppIcon.prototype.activate = function() {
|
|
Packit |
8fda33 |
_activateOriginal.call(this, 2);
|
|
Packit |
8fda33 |
};
|
|
Packit |
8fda33 |
}
|
|
Packit |
8fda33 |
|
|
Packit |
8fda33 |
function disable() {
|
|
Packit |
8fda33 |
AppDisplay.AppIcon.prototype.activate = _activateOriginal;
|
|
Packit |
8fda33 |
}
|