mirror of
				https://github.com/redphx/better-xcloud.git
				synced 2025-10-26 03:24:06 +01:00 
			
		
		
		
	Bind the callback so that this code works on Fire/Waterfox too (#745)
This commit is contained in:
		| @@ -27,7 +27,7 @@ export abstract class BaseCanvasPlayer extends BaseStreamPlayer { | ||||
|             const $video = this.$video; | ||||
|             frameCallback = $video.requestVideoFrameCallback.bind($video); | ||||
|         } else { | ||||
|             frameCallback = requestAnimationFrame; | ||||
|             frameCallback = window.requestAnimationFrame.bind(window); | ||||
|         } | ||||
|  | ||||
|         this.frameCallback = frameCallback; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Squall Leonhart
					Squall Leonhart