ntt123 commited on
Commit
f8bd212
1 Parent(s): 84c7a42

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +2 -2
script.js CHANGED
@@ -216,7 +216,7 @@ window.onload = function(e) {
216
  //Setting up canvas
217
  canvas = document.getElementById("hw-canvas");
218
  ctx = canvas.getContext("2d");
219
- ctx.canvas.width = window.innerWidth;
220
- ctx.canvas.height = window.innerHeight;
221
 
222
  }
 
216
  //Setting up canvas
217
  canvas = document.getElementById("hw-canvas");
218
  ctx = canvas.getContext("2d");
219
+ ctx.canvas.width = window.innerWidth- 50;
220
+ ctx.canvas.height = window.innerHeight - 50;
221
 
222
  }