Skip to content

Commit

Permalink
chore: deprecate standalone checkLightningdomain fn
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Mar 20, 2024
1 parent 427927b commit a156614
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/checkLightningDomain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Env, Duration } from '@salesforce/kit';
import { MyDomainResolver } from '../status/myDomainResolver';
import { SfdcUrl } from './sfdcUrl';

/** @deprecated. Use sfdcUrl.checkLightningdomain */
export default async function checkLightningDomain(url: string): Promise<boolean> {
const domain = `https://${/https?:\/\/([^.]*)/.exec(url)?.slice(1, 2).pop()}.lightning.force.com`;
const quantity = new Env().getNumber('SFDX_DOMAIN_RETRY', 240) ?? 0;
Expand Down

0 comments on commit a156614

Please sign in to comment.