Uthar commited on
Commit
60c33d1
·
verified ·
1 Parent(s): 3274dd5

Update js_quene.js

Browse files
Files changed (1) hide show
  1. js_quene.js +3 -2
js_quene.js CHANGED
@@ -51,8 +51,9 @@ function startNextImageInQuene(){
51
  dropZone = document.querySelector("#drag-zone2");
52
  dropZone.dispatchEvent(dropEvent);
53
 
54
-
55
- document.body.style.backgroundImage = `url('${file}')`;
 
56
  document.body.style.backgroundSize = "cover";
57
  document.body.style.backgroundPosition = "center";
58
  document.body.style.backgroundRepeat = "no-repeat";
 
51
  dropZone = document.querySelector("#drag-zone2");
52
  dropZone.dispatchEvent(dropEvent);
53
 
54
+ data = file.dataTransfer.getData('text/uri-list') || file.dataTransfer.getData('text/plain');
55
+ document.body.style.backgroundImage = `url('${data}')`;
56
+
57
  document.body.style.backgroundSize = "cover";
58
  document.body.style.backgroundPosition = "center";
59
  document.body.style.backgroundRepeat = "no-repeat";