Commit 5a35df9d authored by OptimismBot's avatar OptimismBot Committed by GitHub

Merge pull request #5867 from ethereum-optimism/qbzzt/230601-fix-stack-docs

fix(docs/op-stack): Try to fix the reload code
parents 9d65bd15 08f8e938
...@@ -13,7 +13,12 @@ export default ({ router }) => { ...@@ -13,7 +13,12 @@ export default ({ router }) => {
// the refresh button. For more details see: // the refresh button. For more details see:
// https://linear.app/optimism/issue/FE-1003/investigate-archive-issue-on-docs // https://linear.app/optimism/issue/FE-1003/investigate-archive-issue-on-docs
const registerAutoReload = () => { const registerAutoReload = () => {
event.$on('sw-updated', e => e.skipWaiting().then(() => { event.$on('sw-updated', e => {
location.reload(true); e.skipWaiting().then(() =>
})) {
if (typeof location !== 'undefined')
location.reload(true);
}
)
})
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment