Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active January 12, 2018 19:48
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 parzibyte/13506602aafdb23a2454ef8740d078c3 to your computer and use it in GitHub Desktop.
Save parzibyte/13506602aafdb23a2454ef8740d078c3 to your computer and use it in GitHub Desktop.
Introducción a PouchDB: incluir script y comprobar si lo hemos hecho correctamente
<!DOCTYPE html>
<html>
<head>
<script src="http://cdn.jsdelivr.net/npm/pouchdb@6.4.1/dist/pouchdb.min.js"></script>
</head>
<body>
<h1 id="resultado"></h1>
<script>
var elemento = document.querySelector("#resultado");
if ("undefined" !== typeof PouchDB) elemento.innerHTML = "Correcto";
else elemento.innerHTML = "Algo salió mal";
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment