mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Dev: Support auto scale #32
This commit is contained in:
10
test/boot.js
10
test/boot.js
@@ -3,9 +3,13 @@ function boot(name, cb)
|
||||
// Need a little delay to make sure width and height of webpack dev server iframe are initialized.
|
||||
setTimeout(function ()
|
||||
{
|
||||
eruda.init({
|
||||
tool: name === 'settings' ? [] : name
|
||||
});
|
||||
var options = {};
|
||||
if (name)
|
||||
{
|
||||
options.tool = name === 'settings' ? [] : name;
|
||||
}
|
||||
|
||||
eruda.init(options);
|
||||
eruda.show().get().config.set('displaySize', 50);
|
||||
|
||||
cb && cb();
|
||||
|
||||
Reference in New Issue
Block a user