ydshieh HF staff commited on
Commit
dd7b253
·
verified ·
1 Parent(s): 54f954e

Update split.js

Browse files
Files changed (1) hide show
  1. split.js +1 -1
split.js CHANGED
@@ -82,7 +82,7 @@ function dragend() {
82
  dragging = false;
83
  }
84
 
85
- if (window.addEventListener) {
86
  console.log(document.getElementById("dragbar"));
87
  console.log("****************")
88
  document.getElementById("dragbar").addEventListener("mousedown", function(e) {dragstart(e);});
 
82
  dragging = false;
83
  }
84
 
85
+ if (window.addEventListener && document.getElementById("container") != null) {
86
  console.log(document.getElementById("dragbar"));
87
  console.log("****************")
88
  document.getElementById("dragbar").addEventListener("mousedown", function(e) {dragstart(e);});