Update url
This commit is contained in:
parent
23aa723b5f
commit
134ee583a2
@ -1549,10 +1549,10 @@
|
||||
const baseUrl = window.location.origin;
|
||||
const theme = this.theme !== 'system' ? ` data-theme="${this.theme}"` : '';
|
||||
|
||||
widgetCode.textContent = `<script src="${baseUrl}/dog-calculator-widget.js"></script>
|
||||
widgetCode.textContent = `<script src="embed.${baseUrl}/dog-calculator-widget.js"></script>
|
||||
<div id="dog-calorie-calculator"${theme}></div>`;
|
||||
|
||||
iframeCode.textContent = `<iframe src="${baseUrl}/iframe.html${this.theme !== 'system' ? '?theme=' + this.theme : ''}"
|
||||
iframeCode.textContent = `<iframe src="embed.${baseUrl}/iframe.html${this.theme !== 'system' ? '?theme=' + this.theme : ''}"
|
||||
width="100%" height="600"
|
||||
frameborder="0"
|
||||
title="Dog Calorie Calculator">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user