<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DOMException: Failed to execute 'postMessage' on 'Window' on report.applyTheme() in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/DOMException-Failed-to-execute-postMessage-on-Window-on-report/m-p/871650#M21693</link>
    <description>&lt;P&gt;Good day! I am trying to build in a day/night switch into my Power BI Embedded app that will flip from dark to light. I want to extend the functionality into the embedded report itself. Here is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  var report = powerbi.embed(reportContainer, config);
                           $.ajaxSetup({
                                async: false
                            });
                           var themeJson=  (theme == "material") ? $.getJSON("Content/power-bi-themes/light.json") : $.getJSON("Content/power-bi-themes/dark.json");
                            $.ajaxSetup({
                                async: true
                            });


                            report.applyTheme({themeJson:themeJson});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error I am getting is in the subject line. Please help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2019 07:06:55 GMT</pubDate>
    <dc:creator>datapult</dc:creator>
    <dc:date>2019-12-11T07:06:55Z</dc:date>
    <item>
      <title>DOMException: Failed to execute 'postMessage' on 'Window' on report.applyTheme()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DOMException-Failed-to-execute-postMessage-on-Window-on-report/m-p/871650#M21693</link>
      <description>&lt;P&gt;Good day! I am trying to build in a day/night switch into my Power BI Embedded app that will flip from dark to light. I want to extend the functionality into the embedded report itself. Here is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  var report = powerbi.embed(reportContainer, config);
                           $.ajaxSetup({
                                async: false
                            });
                           var themeJson=  (theme == "material") ? $.getJSON("Content/power-bi-themes/light.json") : $.getJSON("Content/power-bi-themes/dark.json");
                            $.ajaxSetup({
                                async: true
                            });


                            report.applyTheme({themeJson:themeJson});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error I am getting is in the subject line. Please help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 07:06:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DOMException-Failed-to-execute-postMessage-on-Window-on-report/m-p/871650#M21693</guid>
      <dc:creator>datapult</dc:creator>
      <dc:date>2019-12-11T07:06:55Z</dc:date>
    </item>
  </channel>
</rss>

