mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-24 09:48:37 +08:00
Dev: Expose util for plugin usage
This commit is contained in:
@@ -16,8 +16,4 @@ export default class Tool
|
||||
|
||||
return this;
|
||||
}
|
||||
getConfig()
|
||||
{
|
||||
return this._config;
|
||||
}
|
||||
}
|
||||
@@ -53,7 +53,7 @@ function appendContainer()
|
||||
$container = util.$('#eruda');
|
||||
}
|
||||
|
||||
export default {
|
||||
module.exports = {
|
||||
get(name)
|
||||
{
|
||||
devTools.get(name);
|
||||
@@ -65,6 +65,7 @@ export default {
|
||||
devTools.add(tool);
|
||||
|
||||
return this;
|
||||
}
|
||||
},
|
||||
util
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user