Skip to content

Commit f5ab242

Browse files
committed
Fix JS interop issue
1 parent 9c6e9ef commit f5ab242

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

src/BlazorFrame/BlazorFrame.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
88
<PackageId>BlazorFrame</PackageId>
9-
<Version>1.1.2</Version>
9+
<Version>1.2.0</Version>
1010
<Description>A secure Blazor iFrame component with built-in origin validation and message security.</Description>
1111
<PackageProjectUrl>https://www.github.com/Tim-Maes/BlazorFrame</PackageProjectUrl>
1212
<PackageReadmeFile>README.md</PackageReadmeFile>
@@ -34,8 +34,4 @@
3434
<PackagePath>\</PackagePath>
3535
</None>
3636
</ItemGroup>
37-
38-
<ItemGroup>
39-
<Folder Include="wwwroot\" />
40-
</ItemGroup>
4137
</Project>

src/BlazorFrame/BlazorFrame.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
6868
{
6969
module = await JSRuntime.InvokeAsync<IJSObjectReference>(
7070
"import",
71-
"./BlazorFrame.razor.js");
71+
"/_content/BlazorFrame/BlazorFrame.js");
7272
objRef = DotNetObjectReference.Create(this);
7373

7474
await module.InvokeVoidAsync(
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export function initialize(iframe, dotNetHelper, enableResize, allowedOrigins =
7777
iframe.style.height = height + 'px';
7878
}
7979
} catch (error) {
80-
// Cross-origin access denied - this is expected
8180
clearInterval(resizeInterval);
8281
}
8382
}, 500);

0 commit comments

Comments
 (0)