Skip to content

Commit

Permalink
Wrap MediaSession in browser support check, fixes #664
Browse files Browse the repository at this point in the history
  • Loading branch information
jaedb committed Dec 1, 2020
1 parent 107b6ed commit 7bedc5a
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion IRIS_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.55.0
3.55.1
2 changes: 1 addition & 1 deletion mopidy_iris/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from mopidy import config, ext

__version__ = "3.55.0"
__version__ = "3.55.1"

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion mopidy_iris/static/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -98392,7 +98392,7 @@ var App = /*#__PURE__*/function (_React$Component) {
}), userHasInteracted && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_Stream__WEBPACK_IMPORTED_MODULE_15__["default"], {
"data-qa-node": "Stream",
"data-qa-file": "App"
}), userHasInteracted && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_MediaSession__WEBPACK_IMPORTED_MODULE_58__["default"], {
}), userHasInteracted && 'mediaSession' in navigator && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_MediaSession__WEBPACK_IMPORTED_MODULE_58__["default"], {
"data-qa-node": "MediaSession",
"data-qa-file": "App"
}), debug_info && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_DebugInfo__WEBPACK_IMPORTED_MODULE_13__["default"], {
Expand Down
2 changes: 1 addition & 1 deletion mopidy_iris/static/app.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mopidy_iris/static/app.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions mopidy_iris/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@

// Release details
// These are automatically injected to built HTML
var build = "1606724085";
var version = "3.55.0";
var build = "1606811372";
var version = "3.55.1";

// Construct the script tag
var js = document.createElement("script");
Expand Down
2 changes: 1 addition & 1 deletion mopidy_iris/static/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"manifest_version": "3.55.0",
"manifest_version": "3.55.1",
"short_name": "Iris",
"name": "Iris",
"icons": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mopidy-iris",
"version": "3.55.0",
"version": "3.55.1",
"description": "Mopidy HTTP interface",
"repository": "https://github.com/jaedb/iris",
"author": "James Barnsley <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = Mopidy-Iris
version = 3.55.0
version = 3.55.1
url = https://github.com/jaedb/iris
author = James Barnsley
author_email = [email protected]
Expand Down
2 changes: 1 addition & 1 deletion src/js/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ export class App extends React.Component {
<Dragger />
<Notifications />
{userHasInteracted && <Stream />}
{userHasInteracted && <MediaSession />}
{userHasInteracted && ('mediaSession' in navigator) && <MediaSession />}
{debug_info && <DebugInfo />}
</div>
);
Expand Down

0 comments on commit 7bedc5a

Please sign in to comment.