diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index cbc098082..4d2bd7879 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -912,14 +912,8 @@ class AppDisplay extends BaseAppView { } _canAccept(source) { - if (!(source instanceof AppIcon)) - return false; - - let view = _getViewFromIcon(source); - if (!(view instanceof FolderView)) - return false; - - return true; + return (source instanceof AppIcon) || + (source instanceof FolderIcon); } handleDragOver(source) { @@ -934,7 +928,8 @@ class AppDisplay extends BaseAppView { return false; let view = _getViewFromIcon(source); - view.removeApp(source.app); + if (view instanceof FolderView) + view.removeApp(source.app); if (this._currentDialog) this._currentDialog.popdown();