mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Removed fullscreen button from mobile
This commit is contained in:
@@ -85,17 +85,19 @@ var connection_options = {
|
||||
var fromFront = false;
|
||||
var fromChannel = false;
|
||||
|
||||
if (navigator.serviceWorker) {
|
||||
navigator.serviceWorker.register('/service-worker.js', {scope: '/'})
|
||||
.then(function (registration) {
|
||||
Helper.log(registration);
|
||||
})
|
||||
.catch(function (e) {
|
||||
console.error(e);
|
||||
});
|
||||
} else {
|
||||
Helper.log('Service Worker is not supported in this browser.');
|
||||
}
|
||||
try{
|
||||
if (navigator.serviceWorker && window.location.host != "zoff.dev") {
|
||||
navigator.serviceWorker.register('/service-worker.js', {scope: '/'})
|
||||
.then(function (registration) {
|
||||
Helper.log(registration);
|
||||
})
|
||||
.catch(function (e) {
|
||||
console.error(e);
|
||||
});
|
||||
} else {
|
||||
Helper.log('Service Worker is not supported in this browser.');
|
||||
}
|
||||
} catch(e) {}
|
||||
|
||||
$().ready(function(){
|
||||
if(!fromFront && window.location.pathname != "/") init();
|
||||
|
||||
Reference in New Issue
Block a user