Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/api/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as photoshop from "./photoshop"; // BOLT_PHXS_ONLY
import * as indesgin from "./indesign"; // BOLT_IDSN_ONLY
import * as indesign from "./indesign"; // BOLT_IDSN_ONLY
import * as premierepro from "./premierepro"; // BOLT_PPRO_ONLY
import * as illustrator from "./illustrator"; // BOLT_ILST_ONLY
import { uxp } from "../globals";
Expand All @@ -12,14 +12,14 @@ const hostName =
let host = {} as
& typeof uxpLib // BOLT_PHXS_ONLY
& typeof photoshop // BOLT_PHXS_ONLY
& typeof indesgin // BOLT_IDSN_ONLY
& typeof indesign // BOLT_IDSN_ONLY
& typeof premierepro // BOLT_PPRO_ONLY
& typeof illustrator; // BOLT_ILST_ONLY

export type API = typeof host & typeof uxpLib;

if (hostName.startsWith("photoshop")) host = photoshop; // BOLT_PHXS_ONLY
if (hostName.startsWith("indesign")) host = indesgin; // BOLT_IDSN_ONLY
if (hostName.startsWith("indesign")) host = indesign; // BOLT_IDSN_ONLY
if (hostName.startsWith("premierepro")) host = premierepro; // BOLT_PPRO_ONLY
if (hostName.startsWith("illustrator")) host = illustrator; // BOLT_ILST_ONLY

Expand Down