mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
GH page: fix canvas size
This commit is contained in:
@ -156,8 +156,8 @@ starCanvas.prototype.start = function () {
|
||||
let h;
|
||||
|
||||
const setCanvasExtents = () => {
|
||||
w = document.body.clientWidth;
|
||||
h = document.body.clientHeight;
|
||||
w = this.canvas.parentNode.clientWidth;
|
||||
h = this.canvas.parentNode.clientHeight;
|
||||
this.canvas.width = w;
|
||||
this.canvas.height = h;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user