Skip to content

Commit

Permalink
Merge pull request #91 from postmanlabs/markeng-2989
Browse files Browse the repository at this point in the history
[MARKENG-2989] Solve visibility issue with banner in the Support Center
  • Loading branch information
brandonmcastillo authored Dec 13, 2023
2 parents cc04323 + 80303c9 commit 57d0389
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -644,13 +644,13 @@ document.addEventListener('DOMContentLoaded', function () {
});

// Notification Banner
if (window.location.href.includes("support.postman.com/hc/en-us")) {
if (window.location.href.includes("https://support.postman.com")) {
document.addEventListener('DOMContentLoaded', async function () {
// Article label to be considered for the alerts
const label = 'Alert'

// Show the article body within the alertbox? (Boolean: true/false)
const showArticleBody = true
const showArticleBody = true;

// Get current help center locale
const locale = document
Expand All @@ -672,10 +672,10 @@ if (window.location.href.includes("support.postman.com/hc/en-us")) {
const title = articles[i].title
const body = articles[i].body

const html = body !== null ? (`
const html = body ? (`
<div class="ns-box ns-bar ns-effect-slidetop ns-type-notice ns-show">
<div class="ns-box-inner">
${showArticleBody ? `<p>${body}</p>` : ''}
${showArticleBody ? `<p><strong>${title}</strong></p>${body}` : ''}
<span class="ns-close">
</span>
</div>
Expand Down

0 comments on commit 57d0389

Please sign in to comment.