Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有没有监听eruda面板打开的方法 #50

Closed
donniean opened this issue Jan 25, 2018 · 6 comments
Closed

有没有监听eruda面板打开的方法 #50

donniean opened this issue Jan 25, 2018 · 6 comments

Comments

@donniean
Copy link

No description provided.

@surunzi
Copy link
Member

surunzi commented Jan 25, 2018

有什么使用场景?

@donniean
Copy link
Author

目前我们在使用一个国产的hybrid app的框架。该框架把页头、页尾作为一个主页面,中间的内容部分作为一个iframe嵌进去的,来形成header和footer的固定。

现在我把主页面和iframe都使用了eruda,但是主页面点击eruda的图标后,eruda的面板被iframe遮住了。

所以我想能不能提供一个面板show和hide的监听方法。

@surunzi
Copy link
Member

surunzi commented Jan 25, 2018

好的,目前没有方法可以监听到,下个版本加上,大概一周内发布。

@donniean
Copy link
Author

好的 多谢

surunzi added a commit that referenced this issue Jan 25, 2018
@surunzi
Copy link
Member

surunzi commented Jan 28, 2018

可以更新到v1.4.2,使用方法:

var devTools = eruda.get();
devTools.on('show', () => console.log('show')).on('hide', () => console.log('hide'));

@donniean
Copy link
Author

donniean commented Jan 29, 2018

测试可用,非常感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants