summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wordpress-mobile-pack/frontend/themes/app1/template.php')
-rwxr-xr-xplugins/wordpress-mobile-pack/frontend/themes/app1/template.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/wordpress-mobile-pack/frontend/themes/app1/template.php b/plugins/wordpress-mobile-pack/frontend/themes/app1/template.php
index 36e73784..ba2b6bd0 100755
--- a/plugins/wordpress-mobile-pack/frontend/themes/app1/template.php
+++ b/plugins/wordpress-mobile-pack/frontend/themes/app1/template.php
@@ -155,6 +155,13 @@ if ($texts_json_exists === false) {
<script src="<?php echo $export_path.'content.php?content=apptexts&locale='.get_locale();?>" type="text/javascript"></script>
<script src="<?php echo $theme_path;?>js/app.js?date=20161129" 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'] != ''):