finos / FDC3-Sail

Open implementation of the FDC3 standard using Electron and an integrated App Directory.
Apache License 2.0
34 stars 26 forks source link

added flag to force app to open in a new window #97

Closed nkolba closed 2 years ago

nkolba commented 2 years ago

added support for 1.2 and 2.0 'open' handler

Flag added to hostManifests for sail.

forceNewWindow:true

full example:

 {"appId":"adaptabledemo",
          "name":"adaptabledemo",
          "title":"Adaptable Blotter Demo",
          "description":"Adaptable Blotter Demo",
          "icons":[{"src":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAA9lBMVEUATHj///8AyvIANGUAUHsLSHX+//0ANXQBTXQAP28ES3iwydEANWoHSXm2ys/9//sAOm7Y5e0APGkAxvHU5urX9/kAwfkBzOrY9v0Iy+/7//8ATnz///gARHMAQHb/+/////QAS20ATIHn9fnC1t5+nrYAQmwARXoARn///+4AT4kAR24AUHIAO3QAToAAHFlnipmvxtaovcNVgJsuaZcZWoY3a5F5mLpfjKa61uWhtsSOssIAUWtMdZQAOX1Dd4nw8funy9jn7+g1ZICmy+WQsby92dzV3/C//vwAvfkA0eoAJmEAw/QAHmoAIFUVXn8AP1wrbIabcaXPAAAG10lEQVR4nO3di1faOhwH8GS0sQRCWZ26JYBAgaJAJzAd19e2633P+/r//5mbMpw86pU23Uh6ft/j2fG4EfNZno0tIhwTwjlffMo7k+703bnloJg4rFhZf+1LD8X+26xDqTi/mHYnHR+7ssYukX/EWTCK+yIn81fwStfaqzYChpCOQmqHLAh6BfG+wnHTJV9bZSuh/G/pzAojiROIIuuJ77JjIXUcCwXMaVULsx9wrZmkDTG/PK3WLcdxkPxggrFAR2FIKRLRJ7ReFpfxTbgpdDkn+Kreo1t8l10K1zNoNK7kcMQ8qv//CuXfj+1GW2xTqk5CJ2wXrse45hKy2pgbQuLf3NrUaZnWho4Iw37vw0fsPif8VGAt2cvbW5WqkVDIScNpB95YjrOnhfwEz8rbNN4iOgkXoaMzORqXF44VYc2/8JIUp6EQ0cYFj2acOCHnPgq2m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yySZC2nuhQKJfAuphc7zLUR/owvmhFlVL4Nk3oYXaMqcPLehPUXdINfCehdNgsxql0WyFhYnqNPri8zqp55MhZZDRx3keyy3vVSuEgUfYZHjcRjSIUbu+1Zuha2w2MUIVxq5FTI0qkghL+RXSD2OEcGzepZVVEy2M01whuU4bP5QzrKKism2DUed6H4aF4cDx9FlTcxUGDj4WI5DUrtshEKXWxYyFdYvZfvJmabJq+0wj0I64FgKCSf4qpBLYfHqhD/cuXfdz53QsYd9Er1+LiTjXjvrqqZMdsK2N8ZfhS7+oMs1VGZCm93gRyGuffQ02dhkJgz+8cmjUJY5Lgukw5qYiVAgykbjxY2bX4Ry2Zg1TnWYbTIR2qEonj3cxbkQSuJFkBshE4M77JKlcUg458TX4joxGyFqcUzkju1xppnPp/6gT3e+P1UWCsTarLeYZVaEcmvjt9jO9zbKQhoK1Hu99PpHoey3By1mvlAMrn3c5JvC+ZrB73a98qv30sad7KJLZaw+jUD42S11nB3+xE1JKJwBHZ3h1awJCf7k9fuGCum16FfHEeJpIa7ViH/j2WYK0Wn5g78O3HjuyeVNPG7v7uYABSEtBpVoaV+sg08J5+GXXt+mQjD63ZfHxEKLohZjlNm93lWcJV7YxHxieYNo5VD7lcjJk1jo0DBENBgNr2Tv21o437N2ZtVivX36vWiLJBZS2TtH3lkHP/UQWKxwsWl1S91hQTIVf7d1oiQSUrteHBWG3QqfP8QXC3z2CUvSmXSn/56L7zX1bC2klnN+Me1OOv4zgv8AgpNSAyjPfWcAAAAASUVORK5CYII="}],
          "screenshots":[{"src":""}],
          "type":"web",
          "details":{"url":"https://fdc3-demo.adaptabletools.com/"},
          "interop":{},
          "hostManifests":{"sail":
            {
              "inject-api":"1.2",
              "forceNewWindow":true
              }}}