Skip to content

Commit

Permalink
Update app/assets/javascripts/code_listing.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Niko Strijbol <[email protected]>
  • Loading branch information
jorg-vr and niknetniko authored Sep 27, 2023
1 parent 7c72156 commit 2c3a4f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/code_listing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function initAnnotateButtons(): void {
document.addEventListener("dragover", e => e.preventDefault());
document.addEventListener("drop", e => e.preventDefault());

// copy only the selected code, this avoids copying the line numbers or extra whitespace form the complex html
// copy only the selected code, this avoids copying the line numbers or extra whitespace from the complex html
document.addEventListener("copy", event => {
const selection = userAnnotationState.selectedRange;
if (!selection) {
Expand Down

0 comments on commit 2c3a4f0

Please sign in to comment.