mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-13 17:27:09 +00:00
19 lines
380 B
JavaScript
19 lines
380 B
JavaScript
import './style';
|
|
import './lib/fix-pmc';
|
|
import App from './components/app';
|
|
|
|
export default App;
|
|
|
|
if (typeof window!=='undefined') {
|
|
addEventListener('click', e => {
|
|
let { target } = e;
|
|
do {
|
|
if (target.nodeName === 'A') {
|
|
history.pushState(null, null, target.pathname);
|
|
e.preventDefault();
|
|
return false;
|
|
}
|
|
} while ((target = target.parentNode));
|
|
});
|
|
}
|