Skip to content

Commit

Permalink
small
Browse files Browse the repository at this point in the history
  • Loading branch information
szweibel committed Oct 26, 2023
1 parent 45d4922 commit d0ef55c
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions components/Wasm/Jupyter.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,21 @@ export default function Jupyter(props) {
// }, [uploads])

useEffect(() => {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.getRegistrations()
.then(function (registrations) {
for (let registration of registrations) {
console.log(registration);
// if (registration.active.scriptURL == 'coi-serviceworker.js') {
registration.unregister();
window.location.reload()
}
});
}
if ('serviceWorker' in navigator) {
navigator.serviceWorker.getRegistrations()
.then(function (registrations) {
for (let registration of registrations) {
console.log(registration);
// if (registration.active.scriptURL == 'coi-serviceworker.js') {
registration.unregister();
window.location.reload()
}
});
}
}, [])

return (
<>

<div style={{ width: '100%', height: '100%' }}>
<iframe src={jupyterSrc} id='iframe'
width='100%' height='100%'
Expand Down

0 comments on commit d0ef55c

Please sign in to comment.