Skip to content

Commit

Permalink
feat: re-instate marker feedback [skip release]
Browse files Browse the repository at this point in the history
  • Loading branch information
DanWebb committed Apr 24, 2024
1 parent a9ff030 commit 995c0ec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
---
name: Deploy to Pages
on:
workflow_run:
workflows: ["🚀 Release"]
types:
- completed
workflow_dispatch:
push:
branches:
- main
permissions:
contents: read
pages: write
Expand Down
12 changes: 12 additions & 0 deletions demo/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
import '@etchteam/recycling-locator';

const MARKER_KEY = import.meta.env.VITE_MARKER_KEY;

if (MARKER_KEY) {
window.markerConfig = {
project: MARKER_KEY,
source: 'snippet',
};

/* eslint-disable-next-line */
!function(e,r,a){if(!e.__Marker){e.__Marker={};var t=[],n={__cs:t};["show","hide","isVisible","capture","cancelCapture","unload","reload","isExtensionInstalled","setReporter","setCustomData","on","off"].forEach(function(e){n[e]=function(){var r=Array.prototype.slice.call(arguments);r.unshift(e),t.push(r)}}),e.Marker=n;var s=r.createElement("script");s.async=1,s.src="https://edge.marker.io/latest/shim.js";var i=r.getElementsByTagName("script")[0];i.parentNode.insertBefore(s,i)}}(window,document);
}

0 comments on commit 995c0ec

Please sign in to comment.