lc2-driver
Advanced tools
Comparing version 1.2.3 to 1.2.4
{ | ||
"name": "lc2-driver", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -31,9 +31,9 @@ 'use strict'; | ||
traverseFrame(window, window => { | ||
const lastStyle = window.hoverStyleElement; | ||
const lastStyle = window.__LC2_HOVER_STYLE__; | ||
lastStyle && lastStyle.remove(); | ||
const styleElement = | ||
window.hoverStyleElement = | ||
window.__LC2_HOVER_STYLE__ = | ||
window.document.createElement('style'); | ||
const headElement = window.document.head; | ||
const headElement = window.document.body; | ||
headElement && headElement.appendChild(styleElement); | ||
@@ -47,7 +47,2 @@ | ||
function clearHoverSheet() { | ||
hoverStyleElement.innerText = ''; | ||
} | ||
exports.updateHoverSheet = updateHoverSheet; | ||
exports.clearHoverSheet = clearHoverSheet; | ||
exports.updateHoverSheet = updateHoverSheet; |
101728
1824