correct embed url

This commit is contained in:
Dayowe 2025-06-08 23:04:59 +02:00
parent 623149dc17
commit f1de59e368

View File

@ -1552,10 +1552,10 @@
const embedUrl = `${protocol}//embed.${hostname}`;
const theme = this.theme !== 'system' ? ` data-theme="${this.theme}"` : '';
widgetCode.textContent = `<script src="${embedUrl}/dog-calculator-widget.js"></script>
widgetCode.textContent = `<script src="${embedUrl}/dog-calorie-calculator/dog-calculator-widget.js"></script>
<div id="dog-calorie-calculator"${theme}></div>`;
iframeCode.textContent = `<iframe src="${embedUrl}/iframe.html${this.theme !== 'system' ? '?theme=' + this.theme : ''}"
iframeCode.textContent = `<iframe src="${embedUrl}/dog-calorie-calculator/iframe.html${this.theme !== 'system' ? '?theme=' + this.theme : ''}"
width="100%" height="600"
frameborder="0"
title="Dog Calorie Calculator">