Skip to content

Commit

Permalink
* canvas-smooth fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zoul0813 authored and Zeal8bit committed Sep 14, 2024
1 parent fc085aa commit e914732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions view/menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ $('#web-serial-connect').on('click', (e) => {

$('#canvas-smooth-val').on('change', (e) => {
const smooth = e.currentTarget.checked;
localStorage.setItem('canvas-smooth', smooth);
localStorage.setItem('canvas-smooth', JSON.stringify(smooth));
console.log('smooth', smooth);
if(smooth) {
$('#screen').addClass('no-pixels');
Expand All @@ -116,7 +116,7 @@ jQuery(() => {
$('#continue').hide();
$('#pause').show();

const smooth = localStorage.getItem('canvas-smooth') ?? false;
const smooth = JSON.parse(localStorage.getItem('canvas-smooth') ?? false);
$('#canvas-smooth-val').attr('checked', smooth).trigger('change');

if(!navigator || !navigator.serial) {
Expand Down

0 comments on commit e914732

Please sign in to comment.