chrome.devtools.inspectedWindow change event

后端 未结 2 566
野性不改
野性不改 2021-01-13 09:42

The Google Chrome extension API provides info on the currently open window, using chrome.devtools.inspectedWindow, but it doesn\'t provide events for when it changes. I may

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-13 10:05

    Listen to one of the chrome.webNavigation events, and notify the devtools whenever an update occurs.

    Another way to detect that the inspected page is being unloaded is to use the chrome.devtools.network.onNavigated event (only available within your devtools extension page).

提交回复
热议问题