Skip to content

Instantly share code, notes, and snippets.

@pusewicz
Created September 12, 2022 12:53
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 pusewicz/bbe767ce47e5d8e2d0518b86b5c913a9 to your computer and use it in GitHub Desktop.
Save pusewicz/bbe767ce47e5d8e2d0518b86b5c913a9 to your computer and use it in GitHub Desktop.
Step 2: Configuring the Platform bundle
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>todos</title>
+ <script>
+ window._harvestPlatformConfig = {
+ "applicationName": "TodoMVC",
+ "permalink": "https://example.com/#%ITEM_ID%"
+ };
+ </script>
<script async src="https://platform.harvestapp.com/assets/platform.js"></script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment