Don't raise error while dragging of non-tab objects over the tab bar
This commit is contained in:
parent
175286eba2
commit
4797ddfb6b
@ -267,7 +267,7 @@ catch(e) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let draggedTab = aEvent.dataTransfer && aEvent.dataTransfer.mozGetDataAt(TAB_DROP_TYPE, 0);
|
let draggedTab = aEvent.dataTransfer && aEvent.dataTransfer.mozGetDataAt(TAB_DROP_TYPE, 0);
|
||||||
if (draggedTab._dragData) {
|
if (draggedTab && draggedTab._dragData) {
|
||||||
let sameTypeUndraggedTabs = tabs.filter(function(aTab) {
|
let sameTypeUndraggedTabs = tabs.filter(function(aTab) {
|
||||||
return !aTab._dragData && aTab.pinned == draggedTab.pinned;
|
return !aTab._dragData && aTab.pinned == draggedTab.pinned;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user