Skip to content

Instantly share code, notes, and snippets.

@anghelalexandra
Created October 12, 2017 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anghelalexandra/7ae025f964f3f0fc339dd07c518b2800 to your computer and use it in GitHub Desktop.
Save anghelalexandra/7ae025f964f3f0fc339dd07c518b2800 to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML>
<html manifest="" <?php language_attributes(); ?>>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0,
maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<!-- load other meta tags here -->
<title><?php echo get_bloginfo("name");?></title>
<link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/style.css" />
<script
src="<?php echo get_template_directory_uri();?>/js/bundle.js"
type="text/javascript">
</script>
<script>
if('serviceWorker' in navigator) {
navigator.serviceWorker
.register('/sw.js')
.then(function() { console.log("Service Worker Registered"); });
}
</script>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root" style="height:100%"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment