Package Exports
- jdetects
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jdetects) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
jdetects(^^)
Detect if DevTools is open
Find out whether Chrome console is open
Examples
Base
http://jsbin.com/cecuzeb/5/edit?output
jdetects.create(function(status) {
document.querySelector("#devtool-status").innerHTML = status;
});Once onChange
https://jsbin.com/hemipip/edit?js,output
jdetects.create({
once: true,
label: "zswang",
onchange: function(status) {
document.querySelector("#devtool-status").innerHTML = status;
}
});