diff --git a/manifest.json b/manifest.json index e7d5daa..2e3ff52 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "post-zen", "author": "Brandon Castillo, Marketing Engineering, Postman.", - "version": "1.11.0", + "version": "1.11.1", "api_version": 2, "default_locale": "en-us", "settings": [ diff --git a/script.js b/script.js index d42ec06..47a537c 100644 --- a/script.js +++ b/script.js @@ -716,8 +716,8 @@ function getCookie(cname) { setTimeout(() => { let profile = document.getElementById("pm-signed-in"); const isSignedIn = getCookie("ajs_user_id"); - isSignedIn ? profile.setAttribute("href", `/hc/en-us/profiles/${isSignedIn}`) : profile.setAttribute("href", `/hc/en-us/profiles/shared`) - }, 500) + isSignedIn && profile ? profile.setAttribute("href", `/hc/en-us/profiles/${isSignedIn}`) : profile.setAttribute("href", `/hc/en-us/profiles/shared`) + }, 1000) }())