Skip to content

Commit aa3ba73

Browse files
authored
feat: add coords and print deeplink when --mobile (#1268)
* feat: add coords and print deeplink when --mobile * typo
1 parent 86bd3da commit aa3ba73

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/@dcl/sdk-commands/src/commands/start

packages/@dcl/sdk-commands/src/commands/start/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,12 @@ export async function main(options: Options) {
264264
}
265265

266266
if (options.args['--mobile'] && lanUrl) {
267-
const deepLink = `decentraland://open?preview=${lanUrl}`
267+
const deepLink = `decentraland://open?preview=${lanUrl}&position=${baseCoords.x}%2C${baseCoords.y}`;
268268
QRCode.toString(deepLink, { type: 'terminal', small: true }, (err, qr) => {
269269
if (!err) {
270270
components.logger.log(colors.bold('\nScan to preview on mobile: \n'))
271271
components.logger.log(qr)
272+
components.logger.log(`This QR redirects to ${deepLink} in your phone.`)
272273
}
273274
})
274275
}

0 commit comments

Comments
 (0)