Skip to content

Commit 7cb0d40

Browse files
linkdotnetCopilot
andauthored
fix: Check for mac properly
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 00a4e55 commit 7cb0d40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/LinkDotNet.Blog.Web/Features/Components/MarkdownTextArea.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
{
184184
try
185185
{
186-
isMac = await JSRuntime.InvokeAsync<bool>("eval", "navigator.platform.toUpperCase().indexOf('MAC') >= 0");
186+
isMac = await JSRuntime.InvokeAsync<bool>("markdownEditor.isMac");
187187
dotNetHelper = DotNetObjectReference.Create(this);
188188
await JSRuntime.InvokeVoidAsync("markdownEditor.setupKeyboardShortcuts", textAreaRef, dotNetHelper);
189189
}

0 commit comments

Comments
 (0)