File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 * The Original Code is the Tree Style Tab.
1515 *
1616 * The Initial Developer of the Original Code is YUKI "Piro" Hiroshi.
17- * Portions created by the Initial Developer are Copyright (C) 2011-2024
17+ * Portions created by the Initial Developer are Copyright (C) 2011-2025
1818 * the Initial Developer. All Rights Reserved.
1919 *
2020 * Contributor(s): YUKI "Piro" Hiroshi <piro.outsider.reflex@gmail.com>
@@ -1461,8 +1461,9 @@ export async function moveTabs(tabs, options = {}) {
14611461 let newWindow = options . destinationPromisedNewWindow ;
14621462
14631463 let destinationWindowId = options . destinationWindowId ;
1464- if ( ! destinationWindowId && ! newWindow )
1465- destinationWindowId = TabsStore . getCurrentWindowId ( ) ;
1464+ if ( ! destinationWindowId && ! newWindow ) {
1465+ destinationWindowId = TabsStore . getCurrentWindowId ( ) || windowId ;
1466+ }
14661467
14671468 const isAcrossWindows = windowId != destinationWindowId || ! ! newWindow ;
14681469
You can’t perform that action at this time.
0 commit comments