Skip to content

Commit

Permalink
Remove usage of deprecated reloadPage param in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-cz committed Dec 2, 2024
1 parent a4a9a8e commit e5abc46
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/preact-router/src/ReloadPrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function ReloadPrompt() {
? <span>App ready to work offline</span>
: <span>New content available, click on reload button to update.</span>}
</div>
{ needRefresh && <button className="ReloadPrompt-toast-button" onClick={() => updateServiceWorker(true)}>Reload</button> }
{ needRefresh && <button className="ReloadPrompt-toast-button" onClick={() => updateServiceWorker()}>Reload</button> }
<button className="ReloadPrompt-toast-button" onClick={() => close()}>Close</button>
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion examples/react-router/src/ReloadPrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function ReloadPrompt() {
? <span>App ready to work offline</span>
: <span>New content available, click on reload button to update.</span>}
</div>
{ needRefresh && <button className="ReloadPrompt-toast-button" onClick={() => updateServiceWorker(true)}>Reload</button> }
{ needRefresh && <button className="ReloadPrompt-toast-button" onClick={() => updateServiceWorker()}>Reload</button> }
<button className="ReloadPrompt-toast-button" onClick={() => close()}>Close</button>
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion examples/solid-router/src/ReloadPrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const ReloadPrompt: Component = () => {
</Show>
</div>
<Show when={needRefresh()}>
<button class={styles.ToastButton} onClick={() => updateServiceWorker(true)}>Reload</button>
<button class={styles.ToastButton} onClick={() => updateServiceWorker()}>Reload</button>
</Show>
<button class={styles.ToastButton} onClick={() => close()}>Close</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion examples/svelte-routify/src/lib/ReloadPrompt.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
{/if}
</div>
{#if $needRefresh}
<button on:click={() => updateServiceWorker(true)}>
<button on:click={() => updateServiceWorker()}>
Reload
</button>
{/if}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
{/if}
</div>
{#if $needRefresh}
<button on:click={() => updateServiceWorker(true)}>
<button on:click={() => updateServiceWorker()}>
Reload
</button>
{/if}
Expand Down

0 comments on commit e5abc46

Please sign in to comment.