From 61163ea19ad1e2b1f37b438f3a6a9c653d1f85fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arthur=20Brugi=C3=A8re?= <16764085+RoiArthurB@users.noreply.github.com> Date: Sun, 29 Sep 2024 12:53:17 +0700 Subject: [PATCH] Fix import script from start-server.mdx (#1) --- docs/scrcpy/start-server.mdx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/scrcpy/start-server.mdx b/docs/scrcpy/start-server.mdx index 3d8c335..ca8244c 100644 --- a/docs/scrcpy/start-server.mdx +++ b/docs/scrcpy/start-server.mdx @@ -36,12 +36,13 @@ Use `AdbScrcpyClient.start()` method with an option class to start the server. I ```ts transpile import { - AdbScrcpyClient, - AdbScrcpyOptions2_1, - DEFAULT_SERVER_PATH, - ScrcpyOptions2_1, + AdbScrcpyClient, + AdbScrcpyOptions2_1 +} from "@yume-chan/adb-scrcpy"; +import { + DEFAULT_SERVER_PATH, + ScrcpyOptions2_1 } from "@yume-chan/scrcpy"; -import SCRCPY_SERVER_VERSION from "@yume-chan/scrcpy/bin/version.js"; const options = new AdbScrcpyOptions2_1( ScrcpyOptions2_1({ @@ -53,7 +54,7 @@ const client: AdbScrcpyClient = await AdbScrcpyClient.start( adb, DEFAULT_SERVER_PATH, // If server binary was downloaded manually, must provide the correct version - SCRCPY_SERVER_VERSION, + VERSION, options );