Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Jul 24, 2023
1 parent 0103057 commit 0f8793a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ts/JsonEditorActions.class.ts
Expand Up @@ -31,9 +31,7 @@ export class JsonEditorActions {
document.querySelector('.real-container').addEventListener('click', (event) => {
const el = (event.target as HTMLElement);
try {
if (el.matches('[data-action="json-load-metadata"]')) {
JsonEditorHelperC.loadMetadata();
} else if (el.matches('[data-action="json-load-file"]')) {
if (el.matches('[data-action="json-load-file"]')) {
JsonEditorHelperC.loadFile(el.dataset.link, el.dataset.name, el.dataset.uploadid);
} else if (el.matches('[data-action="json-save-metadata"]')) {
JsonEditorHelperC.saveMetadata();
Expand Down

0 comments on commit 0f8793a

Please sign in to comment.