Skip to content

Commit

Permalink
Connect to live Sitecore XM Cloud Pages URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
jflheureux committed Nov 13, 2023
1 parent fc44300 commit faba14f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function startBrowser (browserName) {
await browser.installAddOn(extension.toString('base64'), true)
}

await browser.url('https://perdu.com')
await browser.url('https://pages.sitecorecloud.io')
}

const browserName = process.argv.slice(2).pop() || 'chrome'
Expand Down
8 changes: 7 additions & 1 deletion popup/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ const App = () => {
const popupHeight = useRef('');

function isSupportedUrl(url) {
return url?.startsWith('https://perdu.com')
if (!url) {
return false
}

return url.startsWith('https://pages.sitecorecloud.io') ||
url.startsWith('https://pages.sitecore.io') ||
url.startsWith('https://symphony.sitecorecloud.io')
}

function handleInfoButtonClick() {
Expand Down
4 changes: 3 additions & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"scripting"
],
"host_permissions": [
"https://perdu.com/*"
"https://pages.sitecorecloud.io/*",
"https://pages.sitecore.io/*",
"https://symphony.sitecorecloud.io/*"
],
"icons": {
"72": "icon-72x72.png",
Expand Down
4 changes: 3 additions & 1 deletion public/manifestv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
},
"permissions": [
"scripting",
"https://perdu.com/*"
"https://pages.sitecorecloud.io/*",
"https://pages.sitecore.io/*",
"https://symphony.sitecorecloud.io/*"
],
"icons": {
"72": "icon-72x72.png",
Expand Down

0 comments on commit faba14f

Please sign in to comment.