Skip to content

Commit e7e2467

Browse files
committed
Update codedrop.js
1 parent 77bfaa1 commit e7e2467

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

codedrop.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ cd.on('drop', (ev) => {
156156
if (gitToken == '') {
157157

158158
// remove drop indication
159-
document.body.classList.remove('focus');
159+
cd.classList.remove('focus');
160160

161161
if (ev.dataTransfer.items) {
162162

@@ -197,7 +197,7 @@ cd.on('dragover', (ev) => {
197197
if (gitToken == '') {
198198

199199
// show drop indication
200-
document.body.classList.add('focus');
200+
cd.classList.add('focus');
201201

202202
}
203203

@@ -209,7 +209,7 @@ cd.on('dragleave', (ev) => {
209209
if (gitToken == '') {
210210

211211
// remove drop indication
212-
document.body.classList.remove('focus');
212+
cd.classList.remove('focus');
213213

214214
}
215215

0 commit comments

Comments
 (0)