Skip to content

Commit

Permalink
Merge pull request #75 from hlxsites/revert-wrong-merge-2
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsaplin authored Jun 18, 2024
2 parents d8827e1 + 0b39338 commit 6814a9a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 133 deletions.
1 change: 0 additions & 1 deletion head.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<script src="/scripts/scripts.js" type="module"></script>
<link rel="stylesheet" href="/styles/styles.css"/>
<script src="toggleStyles.js" defer></script>
<link rel="icon" href="data:,">
18 changes: 0 additions & 18 deletions scripts/delayed.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,3 @@ const analyticsConsent = localStorage.getItem('consent_status_ANALYTICS');
if (analyticsConsent) {
await analyticsSetConsent(analyticsConsent === 'ALLOW');
}

const mystique = async ({ detail }) => {
// const sk = detail.data;
// // your custom code from button.action goes here
console.log('Load Mystique here...', sk);
};

const sk = document.querySelector('helix-sidekick');
if (sk) {
// sidekick already loaded
sk.addEventListener('custom:mystique', mystique);
} else {
// wait for sidekick to be loaded
document.addEventListener('sidekick-ready', () => {
document.querySelector('helix-sidekick')
.addEventListener('custom:mystique', mystique);
}, { once: true });
}
108 changes: 0 additions & 108 deletions toggleStyles.js

This file was deleted.

6 changes: 0 additions & 6 deletions tools/sidekick/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
"passConfig": true,
"environments": [ "preview", "live", "edit" ],
"includePaths": ["**.docx**"]
},
{
"id": "mystique",
"title": "Mystique",
"event": "mystique",
"environments": [ "dev", "preview" ]
}
]
}

0 comments on commit 6814a9a

Please sign in to comment.