mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 08:23:34 +00:00
a bit more janitorial work
This commit is contained in:
1 parent
785f75a39a
commit
41d7d7834d
2 files changed
+17
-37
No files matched your search
@@ -148,51 +148,35 @@ consistent handling of both text and binary data across the messaging protocol.
|
||||
|
||||
**Result:** None (notification only, no response expected)
|
||||
|
||||
### `navigate`
|
||||
### Navigation Methods
|
||||
|
||||
**Purpose:** Navigate the iframe to a new URL within the same origin
|
||||
|
||||
**Parameters:**
|
||||
|
||||
- `url` (string): The URL to navigate to (must be same origin)
|
||||
|
||||
**Result:** None (notification only, no response expected)
|
||||
|
||||
### `refresh`
|
||||
#### `navigate`
|
||||
**Purpose:** Navigate iframe to a new URL within the same origin
|
||||
**Parameters:** `url` (string) - Target URL (must be same origin)
|
||||
**Result:** None (notification only)
|
||||
|
||||
#### `refresh`
|
||||
**Purpose:** Refresh/reload the current page in the iframe
|
||||
|
||||
**Parameters:** None
|
||||
**Result:** None (notification only)
|
||||
|
||||
**Result:** None (notification only, no response expected)
|
||||
|
||||
### `goBack`
|
||||
|
||||
#### `goBack`
|
||||
**Purpose:** Navigate back in the iframe's history
|
||||
|
||||
**Parameters:** None
|
||||
**Result:** None (notification only)
|
||||
|
||||
**Result:** None (notification only, no response expected)
|
||||
|
||||
### `goForward`
|
||||
|
||||
#### `goForward`
|
||||
**Purpose:** Navigate forward in the iframe's history
|
||||
|
||||
**Parameters:** None
|
||||
**Result:** None (notification only)
|
||||
|
||||
**Result:** None (notification only, no response expected)
|
||||
|
||||
### `updateNavigationState`
|
||||
|
||||
**Purpose:** Update the parent about the iframe's current navigation state
|
||||
|
||||
#### `updateNavigationState`
|
||||
**Purpose:** Update parent about iframe's current navigation state
|
||||
**Parameters:**
|
||||
|
||||
- `currentUrl` (string): The current URL of the iframe
|
||||
- `canGoBack` (boolean): Whether the iframe can go back in history
|
||||
- `canGoForward` (boolean): Whether the iframe can go forward in history
|
||||
|
||||
**Result:** None (notification only, no response expected)
|
||||
- `currentUrl` (string) - Current URL of the iframe
|
||||
- `canGoBack` (boolean) - Whether iframe can go back in history
|
||||
- `canGoForward` (boolean) - Whether iframe can go forward in history
|
||||
**Result:** None (notification only)
|
||||
|
||||
## Implementation
|
||||
|
||||
|
||||
@@ -414,8 +414,6 @@ class FetchClient {
|
||||
console.warn('loadSiteIndex: Failed to read initial path from sessionStorage:', error);
|
||||
}
|
||||
|
||||
|
||||
|
||||
const serializedRequest = {
|
||||
url: `${location.origin}/`,
|
||||
method: "GET",
|
||||
@@ -493,8 +491,6 @@ class FetchClient {
|
||||
document.body.appendChild(newScript);
|
||||
});
|
||||
|
||||
|
||||
|
||||
// Ensure initial navigation after document is loaded
|
||||
this.ensureInitialNavigation();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user