Skip to content

Commit

Permalink
npm run lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wginolas committed Nov 2, 2023
1 parent 5a1deef commit a449a1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ window.addEventListener('DOMContentLoaded', async function() {
}
})

/**
*
*/
function initBackButton() {
const params = new URLSearchParams(location.search)
const backButton = document.querySelector('#back-button')
backButton.setAttribute('href', params.get('back'));
backButton.setAttribute('href', params.get('back'))
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function openInCryptPad(fileId, filePath, mimeType) {
id: fileId,
path: filePath,
mimeType,
back: location.href
back: location.href,
})
}

Expand Down

0 comments on commit a449a1b

Please sign in to comment.