Service worker catching errors
This commit is contained in:
@ -20,7 +20,7 @@ console.log('Building version '+version+' ('+build+')');
|
||||
copyfiles(
|
||||
{
|
||||
files: {
|
||||
'service-worker.js': 'src/js/service-worker.js',
|
||||
'service-worker.js': 'src/service-worker.js',
|
||||
'manifest.json': 'src/manifest.json'
|
||||
},
|
||||
dest: 'mopidy_iris/static/'
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -58,6 +58,15 @@
|
||||
animation-timing-function: ease-in-out;
|
||||
animation-iteration-count: infinite;
|
||||
}
|
||||
#app-loading-text {
|
||||
position: fixed;
|
||||
top: 60vh;
|
||||
text-align: center;
|
||||
width: 70vw;
|
||||
margin: 0 15vw;
|
||||
color: rgba(255,255,255,0.3);
|
||||
font-size: 16px;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
@ -66,13 +75,14 @@
|
||||
<div id="app">
|
||||
<!-- ReactJS app gets injected here, replacing the loader -->
|
||||
<div id="app-loading"></div>
|
||||
Please wait while Iris loads...
|
||||
<div id="app-loading-text">
|
||||
Please wait, loading...
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
<script type="text/javascript">
|
||||
// Check for browser support of service worker
|
||||
if ('serviceWorker' in navigator){
|
||||
navigator.serviceWorker.register('/service-worker.js')
|
||||
.then(function(registration){
|
||||
@ -87,7 +97,7 @@
|
||||
|
||||
// Release details
|
||||
// These are automatically injected to built HTML
|
||||
var build = "1532250408";
|
||||
var build = "1532291631";
|
||||
var version = "3.22.0";
|
||||
|
||||
// Construct the script tag
|
||||
@ -124,8 +134,5 @@
|
||||
|
||||
</script>
|
||||
|
||||
<!-- Raven Sentry -->
|
||||
<script src="https://cdn.ravenjs.com/3.26.4/raven.min.js" crossorigin="anonymous"></script>
|
||||
|
||||
</html>
|
||||
|
||||
|
||||
@ -58,6 +58,16 @@
|
||||
animation-timing-function: ease-in-out;
|
||||
animation-iteration-count: infinite;
|
||||
}
|
||||
#app-loading-text {
|
||||
position: fixed;
|
||||
top: 55vh;
|
||||
text-align: center;
|
||||
width: 70vw;
|
||||
margin: 0 15vw;
|
||||
color: rgba(255,255,255,0.3);
|
||||
font-size: 16px;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
@ -66,13 +76,14 @@
|
||||
<div id="app">
|
||||
<!-- ReactJS app gets injected here, replacing the loader -->
|
||||
<div id="app-loading"></div>
|
||||
Please wait while Iris loads...
|
||||
<div id="app-loading-text">
|
||||
Please wait, loading...
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
<script type="text/javascript">
|
||||
// Check for browser support of service worker
|
||||
if ('serviceWorker' in navigator){
|
||||
navigator.serviceWorker.register('/service-worker.js')
|
||||
.then(function(registration){
|
||||
@ -124,8 +135,5 @@
|
||||
|
||||
</script>
|
||||
|
||||
<!-- Raven Sentry -->
|
||||
<script src="https://cdn.ravenjs.com/3.26.4/raven.min.js" crossorigin="anonymous"></script>
|
||||
|
||||
</html>
|
||||
|
||||
|
||||
@ -155,6 +155,7 @@ class App extends React.Component{
|
||||
|
||||
handleInstallPrompt(e){
|
||||
e.preventDefault();
|
||||
console.log("Install prompt detected");
|
||||
this.props.uiActions.installPrompt(e);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user