feat: 🎸 add disconnect button to error page
This commit is contained in:
8 files changed
+46
-3
No files matched your search
@@ -17,6 +17,13 @@ handle('setOrigin', async (requestOrigin) => {
|
||||
origin.origin = requestOrigin;
|
||||
});
|
||||
|
||||
/**
|
||||
* Resets the origin.
|
||||
*/
|
||||
handle('resetOrigin', async (requestOrigin) => {
|
||||
origin.resetOrigin();
|
||||
});
|
||||
|
||||
/**
|
||||
* Check for boundary cli existence
|
||||
*/
|
||||
|
||||
@@ -24,7 +24,7 @@ class RuntimeSettings {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Validates the origin is reachable and has a scopes endpoint.
|
||||
*/
|
||||
async validateOrigin(origin) {
|
||||
// If the origin is the Electron origin, it is automatically valid.
|
||||
@@ -40,6 +40,13 @@ class RuntimeSettings {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the origin to null.
|
||||
*/
|
||||
async resetOrigin() {
|
||||
this.origin = null;
|
||||
}
|
||||
|
||||
// Quick and dirty event handler pattern to enable the application to respond
|
||||
// when the origin is changed.
|
||||
#originWatchers = [];
|
||||
|
||||
Reference in new issue
Block a user