Skip to content

Commit

Permalink
chore: followup bug 1927540 - drop tab into/out of end of tab groups
Browse files Browse the repository at this point in the history
  • Loading branch information
onemen committed Nov 20, 2024
1 parent db7bb58 commit 666f885
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion addon/chrome/content/minit/minit.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,15 @@ var TMP_tabDNDObserver = {
*/
function patchDragMethod(name, code) {
if (Tabmix.isVersion(1320)) {
code.toCode(false, Tabmix.originalFunctions, `_tabmix_${name}`);
// @ts-expect-error - these constants are used by on_drop
// eslint-disable-next-line no-unused-vars
const GROUP_DROP_ACTION_CREATE = 0x1;
// @ts-expect-error
// eslint-disable-next-line no-unused-vars
const GROUP_DROP_ACTION_APPEND = 0x2;

const make = eval(Tabmix._localMakeCode);
Tabmix.originalFunctions[`_tabmix_${name}`] = make(null, code.value);
Tabmix.originalFunctions[name] = gBrowser.tabContainer[name];
gBrowser.tabContainer[name] = function(event) {
const methodName = this.verticalMode ? name : `_tabmix_${name}`;
Expand Down

0 comments on commit 666f885

Please sign in to comment.