简体   繁体   中英

Chrome devtools extension inspect window

I use chrome.devtools.inspectedWindow.onResourceContentCommitted.addListener event to get css changes on the inspect window.

chrome.devtools.inspectedWindow.onResourceContentCommitted.addListener(function(resource, content) {
    // some code
});

When I change css that has resource file it works perfect. but, when I change the document (html or css) it doesn't fire the event.

Do i miss something? Is it different event for the document?

Thanks,

Tal.

onResourceContentCommitted

Fired when a new revision of the resource is committed (eg user saves an edited version of the resource in the Developer Tools)

So you need to save your changes to fire it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM