{"size": 284, "ext": "js", "max_stars_repo_path": "FirefoxCriarExtensoes/webextensions-examples/store-collected-images/webextension-plain/utils/handle-window-drag-and-drop.js", "max_stars_repo_name": "ribafs/desktop", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "FirefoxCriarExtensoes/webextensions-examples/store-collected-images/webextension-plain/utils/handle-window-drag-and-drop.js", "max_issues_repo_name": "ribafs/desktop", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "FirefoxCriarExtensoes/webextensions-examples/store-collected-images/webextension-plain/utils/handle-window-drag-and-drop.js", "max_forks_repo_name": "ribafs/desktop", "max_forks_repo_forks_event_min_datetime": "2021-11-05T07:48:26.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-05T07:48:26.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 18.9333333333, "max_line_length": 39, "alphanum_fraction": 0.7323943662}
/* exported preventWindowDragAndDrop */

"use strict";

function preventWindowDragAndDrop() {
  function preventDefault(ev) {
    ev.preventDefault();
    return true;
  }

  window.ondragover = preventDefault;
  window.ondragend = preventDefault;
  window.ondrop = preventDefault;
}
