Javascript Filepicker 未在 Filemaker Pro Webviewer 中加载

Javascript Filepicker not loading in Filemaker Pro Webviewer

我可以让我的 Filestack Filepicker 加载到一个简单的 HTMl 文档中,但是当我将该确切代码移到我的 Filemaker Webviewer 中时,它不起作用。从我读过的所有内容来看,这在 Filemaker Webviewer 中应该是可行的。我错过了什么??

我相信我已经尝试了这里显而易见的一切。

这是我的简单代码(我删除了我的 API 密钥 - 但它再次作为 Chrome 中的 html 文档工作正常)。

Html 有效:

<html>
  <head>
   <script src="https://static.filestackapi.com/filestack-js/3.x.x/filestack.min.js" crossorigin="anonymous"></script>
  </head>
  <body>
      <script>
         const client = filestack.init('APIKEYWASHERE');
         client.picker().open();
      </script>
  </body>
</html>

这是我的 FMP Webviewer 代码:

    Let( [  

    html = "
      <html>
        <head>
          <script  type='text/javascript' src=\"https://static.filestackapi.com/filestack-js/3.x.x/filestack.min.js\" crossorigin=\"anonymous\"></script>
        </head>
        <body>
            <script type='text/javascript' >
               const client = filestack.init('APIKEYWASHERE');
               client.picker().open();
            </script>
        </body>
    </html>"

    ]; "data:text/html," & html)

只是显示为一片空白 window。

经过深入挖掘和朋友的咨询,我解决了这个问题。需要一个 polyfill,我发现有几个没有用,直到最后代码中的一个才起作用。我还需要在调用加载 Filepicker JS 之前加载这些。底线 - IE11 不是你的朋友。这是在 IE 中工作的代码...

<html>
  <head>
   <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser-polyfill.min.js"></script>
   <script src="https://static.filestackapi.com/filestack-js/3.x.x/filestack.min.js" crossorigin="anonymous"></script>
  </head>
  <body>
      <script>
         const client = filestack.init('my API KEY');
         client.picker().open();
      </script>
  </body>
 </html>```