-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override domainBaseUrl per Notion recommendation #109
Conversation
This pull request is being automatically deployed with Vercel (learn more). csb-vydqj – ./🔍 Inspect: https://vercel.com/stephenou/csb-vydqj/ABmQtSLnJReLQffrGcd8ceHP3HVy fruition – ./🔍 Inspect: https://vercel.com/stephenou/fruition/JC3sedK8sCbmthqmcn5dXbCDo89w |
class BodyRewriter { | ||
constructor(SLUG_TO_PAGE) { | ||
this.SLUG_TO_PAGE = SLUG_TO_PAGE; | ||
} | ||
element(element) { | ||
element.append(\`<div style="display:none">Powered by <a href="http://fruitionsite.com">Fruition</a></div> | ||
<script> | ||
window.CONFIG.domainBaseUrl = "https://\${MY_DOMAIN}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the noise (my IDE cleaned up the whitespace). Here is the change for code.js
the corrections work for me |
Closing this PR since @stephenou included it in their latest commit 🎉 8b1f7dc |
I'm still experiencing this as of Oct 4, 21. Reported my issue here: #113 (comment) CC: @laughnan @sweethuman |
Recommended fix from Ryo (Notion on Reddit) and @wentin in the issue queue.