summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wordpress-mobile-pack/frontend/themes/app2/template.php')
-rwxr-xr-xplugins/wordpress-mobile-pack/frontend/themes/app2/template.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/wordpress-mobile-pack/frontend/themes/app2/template.php b/plugins/wordpress-mobile-pack/frontend/themes/app2/template.php
index 14a9e165..96933aaa 100755
--- a/plugins/wordpress-mobile-pack/frontend/themes/app2/template.php
+++ b/plugins/wordpress-mobile-pack/frontend/themes/app2/template.php
@@ -43,6 +43,7 @@ if ($texts_json_exists === false) {
<?php endif;?>
<title><?php echo get_bloginfo("name");?></title>
+ <noscript>Your browser does not support JavaScript!</noscript>
<!-- load css -->
<link rel="stylesheet" href="<?php echo $theme_path;?>css/bundle.css?date=20170503">
@@ -65,7 +66,13 @@ if ($texts_json_exists === false) {
};
</script>
<script src="<?php echo $theme_path;?>js/app.js?date=20170503" type="text/javascript"></script>
-
+ <?php if ($app_settings['service_worker_installed'] == 1): ?>
+ <script>
+ if ('serviceWorker' in navigator) {
+ navigator.serviceWorker.register('/sw.js');
+ }
+ </script>
+ <?php endif; ?>
<?php
// check if google analytics id was set
if ($app_settings['google_analytics_id'] != ''):