File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 66 < meta name ="viewport " content ="width=device-width, initial-scale=1.0, viewport-fit=cover ">
77 < title > Chromatone Spectrogram</ title >
88 < link rel ="icon " type ="image/svg+xml " href ="/logo.svg ">
9- < meta name ="theme-color " content ="#D3D3E8 ">
9+ < meta name ="theme-color " content ="#222222 ">
1010 < meta name ="application-name " content ="Spectrogram ">
1111 < meta name ="author " content ="Denis Starov ">
1212 < meta name ="creator " content ="Chromatone ">
3636 "short_name": "Spectrogram",
3737 "description": "Visual time-frequency analysis for all",
3838 "background_color": "#000000",
39- "theme_color": "#D3D3E8 ",
39+ "theme_color": "#222222 ",
4040 "display": "standalone",
4141 "orientation": "any",
4242 "start_url": "./",
Original file line number Diff line number Diff line change @@ -94,10 +94,16 @@ const startRecording = () => {
9494
9595const stopRecording = () => {
9696 recording .value = false ;
97- const link = document .createElement (' a' );
98- link .download = ' canvas_recording.png' ;
99- link .href = offscreenCanvas .toDataURL ();
100- link .click ();
97+
98+ // const link = document.createElement('a');
99+ // link.download = 'canvas_recording.png';
100+ // link.href = offscreenCanvas.toDataURL();
101+ // link.click();
102+
103+ offscreenCanvas .toBlob ((blob ) => {
104+ const blobUrl = window .URL .createObjectURL (blob);
105+ window .open (blobUrl, ' _blank' );
106+ }, ' image/png' );
101107};
102108
103109let recTemp, recCtx
You can’t perform that action at this time.
0 commit comments