mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-01 07:28:12 +08:00
Clean up JS message dispatcher and fix a bug thrown on empty-data messages
Fixes bug in #394
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { createDialog, dismissDialog } from "@/utilities/dialog";
|
||||
import { TextButtonWidget } from "@/components/widgets/widgets";
|
||||
import { subscribeJsMessage } from "@/utilities/js-message-dispatcher";
|
||||
import { DisplayError, DisplayPanic } from "./js-messages";
|
||||
import { DisplayError, DisplayPanic } from "@/utilities/js-messages";
|
||||
|
||||
// Coming soon dialog
|
||||
export function comingSoon(issueNumber?: number) {
|
||||
@@ -139,8 +139,7 @@ function browserVersion(): string {
|
||||
|
||||
function operatingSystem(): string {
|
||||
const osTable: Record<string, string> = {
|
||||
"Windows NT 11": "Windows 11",
|
||||
"Windows NT 10": "Windows 10",
|
||||
"Windows NT 10": "Windows 10 or 11",
|
||||
"Windows NT 6.3": "Windows 8.1",
|
||||
"Windows NT 6.2": "Windows 8",
|
||||
"Windows NT 6.1": "Windows 7",
|
||||
|
||||
Reference in New Issue
Block a user