Change message format + refactor options

This commit is contained in:
hensm
2018-11-28 08:35:31 +00:00
parent 5ee6b25cb7
commit 70246f1f99
11 changed files with 423 additions and 401 deletions

View File

@@ -122,7 +122,7 @@ async function onRequestSessionSuccess (session_) {
session = session_;
let mediaUrl = new URL(srcUrl);
const port = options.option_localMediaServerPort;
const port = options.localMediaServerPort;
if (isLocalFile) {
await new Promise((resolve, reject) => {
@@ -295,7 +295,7 @@ window.__onGCastApiAvailable = async function (loaded, errorInfo) {
options = (await browser.storage.sync.get("options")).options;
if (isLocalFile && !options.option_localMediaEnabled) {
if (isLocalFile && !options.localMediaEnabled) {
logMessage("Local media casting not enabled");
return;
}