Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
owulveryck committed Nov 20, 2023
1 parent 707dd5c commit d5ec74b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions client/glCanvas.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// WebGL initialization
//const gl = visibleCanvas.getContext('webgl');
//const gl = canvas.getContext('webgl', { antialias: true, preserveDrawingBuffer: true });
const gl = canvas.getContext('webgl', { antialias: true });


Expand Down
9 changes: 5 additions & 4 deletions client/utilities.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@

function downloadScreenshot(dataUrl) {
// Use 'toDataURL' to capture the current canvas content
// Create an 'a' element for downloading
var link = document.getElementById("screenshot");
//var link = document.createElement("a");
link.href = dataUrl;
link.download = "reMarkable.png";

link.download = 'goMarkableScreenshot.png';
link.href = dataURL;
link.click();
}

Expand Down

0 comments on commit d5ec74b

Please sign in to comment.