Enable strict mode for extension build

This commit is contained in:
hensm
2020-01-23 00:58:33 +00:00
parent 3553912584
commit 7f84b90431
59 changed files with 526 additions and 331 deletions

View File

@@ -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;