Skip to content

Commit

Permalink
Const
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-grant-work authored Oct 16, 2023
1 parent cceb1e9 commit 147a389
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugin/memory-webview-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ export class MemoryWebview implements vscode.CustomReadonlyEditorProvider {
query: range ? `?range=${range.fromOffset}:${range.toOffset}` : undefined,
*/

let memoryReference = document.uri.path.split('/')[1];
memoryReference = decodeURIComponent(memoryReference);
const memoryReference = decodeURIComponent(document.uri.path.split('/')[1]);
await this.show({ memoryReference }, webviewPanel);
}

Expand Down

0 comments on commit 147a389

Please sign in to comment.