mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 18:39:58 +00:00
Enable strict mode for extension build
This commit is contained in:
@@ -35,7 +35,7 @@ function sendAppMessage (subject: string, data: any) {
|
||||
session.sendMessage(FX_CAST_RECEIVER_APP_NAMESPACE, {
|
||||
subject
|
||||
, data
|
||||
}, null, null);
|
||||
}, () => {}, () => {});
|
||||
}
|
||||
|
||||
|
||||
@@ -76,6 +76,11 @@ async function onRequestSessionSuccess (newSession: cast.Session) {
|
||||
const canvas = document.createElement("canvas");
|
||||
const ctx = canvas.getContext("2d");
|
||||
|
||||
// Shouldn't be possible
|
||||
if (!ctx) {
|
||||
break;
|
||||
}
|
||||
|
||||
// Set initial size
|
||||
canvas.width = window.innerWidth;
|
||||
canvas.height = window.innerHeight;
|
||||
|
||||
Reference in New Issue
Block a user