diff --git a/package-lock.json b/package-lock.json index 9fcbbe34..92a77124 100644 --- a/package-lock.json +++ b/package-lock.json @@ -638,7 +638,8 @@ "version": "12.1.1", "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-12.1.1.tgz", "integrity": "sha512-6mplMGvLCKF5LieL7BRhydpg32tm6LICnWQADrWU4S5g9PKi2utNvhiaiuNPoHUXr29RdbNaGNcyyPv8DSjJsQ==", - "dev": true + "dev": true, + "optional": true }, "@commitlint/format": { "version": "13.1.0", @@ -719,6 +720,7 @@ "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-12.1.1.tgz", "integrity": "sha512-qOQtgNdJRULUQWP9jkpTwhj7aEtnqUtqeUpbQ9rjS+GIUST65HZbteNUX4S0mAEGPWqy2aK5xGd73cUfFSvuuw==", "dev": true, + "optional": true, "requires": { "@commitlint/execute-rule": "^12.1.1", "@commitlint/resolve-extends": "^12.1.1", @@ -733,7 +735,8 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true + "dev": true, + "optional": true } } }, @@ -793,6 +796,7 @@ "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-12.1.1.tgz", "integrity": "sha512-/DXRt0S0U3o9lq5cc8OL1Lkx0IjW0HcDWjUkUXshAajBIKBYSJB8x/loNCi1krNEJ8SwLXUEFt5OLxNO6wE9yQ==", "dev": true, + "optional": true, "requires": { "import-fresh": "^3.0.0", "lodash": "^4.17.19", @@ -804,7 +808,8 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true + "dev": true, + "optional": true } } }, @@ -941,6 +946,7 @@ "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-12.1.1.tgz", "integrity": "sha512-+qGH+s2Lo6qwacV2X3/ZypZwaAI84ift+1HBjXdXtI/q0F5NtmXucV3lcQOTviMTNiJhq4qWON2fjci2NItASw==", "dev": true, + "optional": true, "requires": { "chalk": "^4.0.0" } diff --git a/package.json b/package.json index 10b41314..b6f82a20 100644 --- a/package.json +++ b/package.json @@ -70,15 +70,15 @@ "url": "git+https://github.com/jellyfin/jellyfin-chromecast.git" }, "scripts": { - "build:development": "TS_NODE_PROJECT=\"tsconfig-webpack.json\" webpack --config webpack.config.ts --mode=development", - "build:production": "TS_NODE_PROJECT=\"tsconfig-webpack.json\" webpack --config webpack.config.ts --mode=production", + "build:development": "cross-env TS_NODE_PROJECT=\"tsconfig-webpack.json\" webpack --config webpack.config.ts --mode=development", + "build:production": "cross-env TS_NODE_PROJECT=\"tsconfig-webpack.json\" webpack --config webpack.config.ts --mode=production", "lint": "npm run lint:code && npm run lint:css && npm run prettier", "lint:code": "eslint --ext .ts,.js,.json .", "lint:css": "stylelint **/*.css", "prepare": "npm run build:production", "prettier": "prettier --check .", - "start": "TS_NODE_PROJECT=\"tsconfig-webpack.json\" webpack serve --config webpack.config.ts", + "start": "cross-env TS_NODE_PROJECT=\"tsconfig-webpack.json\" webpack serve --config webpack.config.ts", "test": "jest", - "watch": "TS_NODE_PROJECT=\"tsconfig-webpack.json\" webpack --config webpack.config.ts --watch" + "watch": "cross-env TS_NODE_PROJECT=\"tsconfig-webpack.json\" webpack --config webpack.config.ts --watch" } } diff --git a/src/components/maincontroller.ts b/src/components/maincontroller.ts index 1afd2b89..0bf5e604 100644 --- a/src/components/maincontroller.ts +++ b/src/components/maincontroller.ts @@ -607,7 +607,6 @@ export async function onStopPlayerBeforePlaybackDone( }); playbackMgr.playItemInternal(data, options); - broadcastConnectionErrorMessage(); } let lastBitrateDetect = 0;