diff --git a/addon/chrome/content/minit/minit.js b/addon/chrome/content/minit/minit.js index 1e3062db..89ae6543 100644 --- a/addon/chrome/content/minit/minit.js +++ b/addon/chrome/content/minit/minit.js @@ -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}`;