Skip to content

Commit be45c87

Browse files
authored
Dashboard: always show clear stored URL button on error
1 parent 54ab247 commit be45c87

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

dashboard/src/pages/matter-dashboard-app.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,7 @@ class MatterDashboardApp extends LitElement {
6767
if (this._state === "error") {
6868
return html`
6969
<p>Error: ${this._error}</p>
70-
${location.hostname === "localhost"
71-
? html`
72-
<button @click=${this._clearLocalStorage}>
73-
Clear stored URL
74-
</button>
75-
`
76-
: ""}
70+
<button @click=${this._clearLocalStorage}>Clear stored URL</button>
7771
`;
7872
}
7973
if (this._route.prefix === "node") {

0 commit comments

Comments
 (0)