chore: reduce css size

This commit is contained in:
surunzi
2019-11-14 16:17:59 +08:00
parent 2ea70ff0e5
commit 187d2f0d0d
16 changed files with 1129 additions and 1162 deletions

View File

@@ -75,7 +75,9 @@ export default class DevTools extends Emitter {
name = name.toLowerCase()
if (this._tools[name]) return logger.warn(`Tool ${name} already exists`)
this._$tools.prepend(`<div class="eruda-${name} eruda-tool"></div>`)
this._$tools.prepend(
`<div id="eruda-${name}" class="eruda-${name} eruda-tool"></div>`
)
tool.init(this._$tools.find(`.eruda-${name}.eruda-tool`), this)
tool.active = false
this._tools[name] = tool