mirror of
https://github.com/streamich/react-use.git
synced 2026-01-25 14:17:16 +00:00
46 lines
1.7 KiB
HTML
46 lines
1.7 KiB
HTML
<!doctype html><html lang="en"><head><meta charset="utf-8"/><title>Storybook</title><meta name="viewport" content="width=device-width,initial-scale=1"/><style>html, body {
|
|
overflow: hidden;
|
|
height: 100%;
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}</style><script>/* globals window */
|
|
/* eslint-disable no-underscore-dangle */
|
|
try {
|
|
if (window.top !== window) {
|
|
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.top.__REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
}
|
|
} catch (e) {
|
|
// eslint-disable-next-line no-console
|
|
console.warn('unable to connect to top frame for connecting dev tools');
|
|
}
|
|
|
|
window.onerror = function onerror(message, source, line, column, err) {
|
|
if (window.CONFIG_TYPE !== 'DEVELOPMENT') return;
|
|
// eslint-disable-next-line no-var, vars-on-top
|
|
var error = { message: err.message, name: err.name, stack: err.stack };
|
|
window.fetch('/runtime-error', {
|
|
method: 'POST',
|
|
headers: { 'Content-Type': 'application/json' },
|
|
body: JSON.stringify({ message, source, line, column, error, origin: 'manager' }),
|
|
});
|
|
};</script><style>#root[hidden],
|
|
#docs-root[hidden] {
|
|
display: none !important;
|
|
}</style></head><body><div id="root"></div><div id="docs-root"></div><script>window['CONFIG_TYPE'] = "PRODUCTION";
|
|
|
|
|
|
|
|
window['LOGLEVEL'] = "info";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window['DOCS_MODE'] = false;</script><script src="runtime~main.870e8ee0658e83d05c6b.bundle.js"></script><script src="vendors~main.f08bb5a790aeccfaa7aa.bundle.js"></script><script src="main.609e44907021aff9fa53.bundle.js"></script></body></html> |