diff --git a/src/App/App.js b/src/App/App.js
index 08e7acc3b..42c55b5f6 100644
--- a/src/App/App.js
+++ b/src/App/App.js
@@ -5,7 +5,7 @@ const React = require('react');
const { Router } = require('stremio-router');
const { Core, Shell, Chromecast, KeyboardShortcuts, ServicesProvider } = require('stremio/services');
const { NotFound } = require('stremio/routes');
-const { ToastProvider, sanitizeLocationPath, CONSTANTS } = require('stremio/common');
+const { ToastProvider, ServerNotification, sanitizeLocationPath, CONSTANTS } = require('stremio/common');
const CoreEventsToaster = require('./CoreEventsToaster');
const routerViewsConfig = require('./routerViewsConfig');
const styles = require('./styles');
@@ -98,6 +98,7 @@ const App = () => {
:
}
+
);
diff --git a/src/common/ServerNotification/styles.less b/src/common/ServerNotification/styles.less
index 432cfb9b9..835fc524e 100644
--- a/src/common/ServerNotification/styles.less
+++ b/src/common/ServerNotification/styles.less
@@ -7,9 +7,9 @@
right: 0;
bottom: 0;
left: 0;
+ z-index: 1;
display: flex;
flex-direction: row;
- align-items: center;
padding: 0.5rem 1rem;
background-color: @color-accent3;
diff --git a/src/router/Route/Route.js b/src/router/Route/Route.js
index 58942d8de..1ffa0a439 100644
--- a/src/router/Route/Route.js
+++ b/src/router/Route/Route.js
@@ -3,23 +3,14 @@
const React = require('react');
const PropTypes = require('prop-types');
const { ModalsContainerProvider } = require('../ModalsContainerContext');
-const ServerNotification = require('../../common/ServerNotification');
-const UrlUtils = require('url');
const Route = ({ children }) => {
- const { pathname } = UrlUtils.parse(window.location.hash.slice(1));
return (
{children}
- {
- pathname !== null && (pathname === '/' || pathname.startsWith('/discover') || pathname.startsWith('/library')) ?
-
- :
- null
- }
);