mirror of
https://github.com/liriliri/eruda.git
synced 2026-04-01 10:18:35 +08:00
Add: Container test
This commit is contained in:
@@ -53,8 +53,8 @@ export default class DevTools extends util.Emitter
|
||||
}
|
||||
add(tool)
|
||||
{
|
||||
let {init, show, hide} = new Tool();
|
||||
util.defaults(tool, {init, show, hide});
|
||||
let {init, show, hide, destroy} = new Tool();
|
||||
util.defaults(tool, {init, show, hide, destroy});
|
||||
|
||||
let name = tool.name;
|
||||
if (!name) return logger.error('You must specify a name for a tool');
|
||||
|
||||
Reference in New Issue
Block a user