Skip to content

Commit

Permalink
Fixed build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
stuerp committed Nov 20, 2024
1 parent f89f2ea commit 46c7b17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Build-FB2KComponent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ elseif ($Platform -eq 'Win32')
# Copy-Item "$OutputPath/$TargetName.tlb" -Destination "$PackagePath" -Force -Verbose;
Copy-Item "$OutputPath/WebView2Loader.dll" -Destination "$PackagePath" -Force -Verbose;
Copy-Item "Template.html" -Destination "$PackagePath/Default-Template.html" -Force -Verbose;
Copy-Item "Template.html" -Destination "$PackagePath/Default-FrameTemplate.html" -Force -Verbose;
Copy-Item "FrameTemplate.html" -Destination "$PackagePath/Default-FrameTemplate.html" -Force -Verbose;
}

# install the x86 component in the foobar2000 x86 components directory.
Expand Down
4 changes: 4 additions & 0 deletions FrameTemplate.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@
<label for="GetPropertyAsyncButton">Value:</label>
<div><code><pre><span id="GetPropertyAsyncOutput"></span></pre></code></div>

<span id="TextFile"></span><br/>

<div id="Frame" style="display: none;">
<h2>IFrame</h2>
</div>

<script>
document.getElementById("TextFile").textContent = chrome.webview.hostObjects.sync.foo_uie_webview.ReadAllText("C:/Windows/win.ini", 65001);

function CreateIFrame()
{
var i = document.createElement("iframe");
Expand Down

0 comments on commit 46c7b17

Please sign in to comment.