mirror of
https://github.com/rxliuli/apps.apple.com.git
synced 2026-03-23 04:47:39 +01:00
14 lines
352 B
TypeScript
14 lines
352 B
TypeScript
import { platform } from '@amp/web-apps-utils';
|
|
|
|
const setupUrlForMac = (url: string) => {
|
|
const incomingUrl = new URL(url);
|
|
incomingUrl.searchParams.set('mt', '12');
|
|
return incomingUrl.toString();
|
|
};
|
|
|
|
export const launchAppOnMac = (url: string) => {
|
|
const appUrl = setupUrlForMac(url);
|
|
|
|
platform.launchClient(appUrl, () => {});
|
|
};
|