We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vOffset
chatgpt.notify()
1 parent 2525983 commit 2348b15Copy full SHA for 2348b15
chatgpt.js
@@ -1367,7 +1367,7 @@ const chatgpt = {
1367
for (const divId of thisQuadrantQueue.slice(0, -1)) { // exclude new div
1368
const oldDiv = document.getElementById(divId),
1369
offsetProp = oldDiv.style.top ? 'top' : 'bottom', // pick property to change
1370
- vOffset = +/\d+/.exec(oldDiv.style[offsetProp])[0] + 5 + oldDiv.getBoundingClientRect().height
+ vOffset = +parseInt(oldDiv.style[offsetProp]) +5 + oldDiv.getBoundingClientRect().height
1371
oldDiv.style[offsetProp] = `${ vOffset }px` // change prop
1372
}
1373
} catch (err) {}
0 commit comments