From 13586d251426ba457e162ebd064ff41e78257de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=A4=A7=E5=BE=B7?= Date: Fri, 15 Dec 2023 02:10:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86ios=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=8A=B6=E6=80=81=E9=94=99=E8=AF=AF=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ios/Webserver.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ios/Webserver.swift b/src/ios/Webserver.swift index a2ed511..aaac127 100644 --- a/src/ios/Webserver.swift +++ b/src/ios/Webserver.swift @@ -170,7 +170,8 @@ @objc(isRunning:) func isRunning(_ command: CDVInvokedUrlCommand) { - let pluginResult = CDVPluginResult(status: CDVCommandStatus_OK,messageAsInt: self.webServer.isRunning ? 1 : 0) + let messageAsInt = self.webServer.isRunning ? 1 : 0; + let pluginResult = CDVPluginResult(status: CDVCommandStatus_OK, messageAs: messageAsInt) self.commandDelegate!.send(pluginResult, callbackId: command.callbackId) } }