Skip to content

Commit

Permalink
fix: data was changed although no data was not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Apr 7, 2021
1 parent 0ae008a commit 8622476
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export default class AdvancedURI extends Plugin {

this.registerObsidianProtocolHandler("advanced-uri", async (e) => {
const parameters = e as unknown as Parameters;

parameters.data = decodeURIComponent(parameters.data);

if (parameters.data) {
parameters.data = decodeURIComponent(parameters.data);
}
if (parameters.workspace) {
this.handleWorkspace(parameters.workspace);

Expand Down

0 comments on commit 8622476

Please sign in to comment.