mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Fix: Class name conflict
This commit is contained in:
@@ -75,7 +75,7 @@ export default class DevTools extends Emitter
|
||||
if (this._tools[name]) return logger.warn(`Tool ${name} already exists`);
|
||||
|
||||
this._$tools.prepend(`<div class="eruda-${name} eruda-tool"></div>`);
|
||||
tool.init(this._$tools.find(`.eruda-${name}`), this);
|
||||
tool.init(this._$tools.find(`.eruda-${name}.eruda-tool`), this);
|
||||
tool.active = false;
|
||||
this._tools[name] = tool;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user