mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-24 05:04:50 -04:00
Send main page path to the server
This commit is contained in:
parent
ade8940110
commit
31f0dbe389
@ -19,6 +19,7 @@ import java.net.SocketException;
|
|||||||
import java.util.Enumeration;
|
import java.util.Enumeration;
|
||||||
import org.kiwix.kiwixmobile.R;
|
import org.kiwix.kiwixmobile.R;
|
||||||
|
|
||||||
|
import static org.kiwix.kiwixmobile.main.MainActivity.MAIN_PAGE_STORAGE_PATH;
|
||||||
import static org.kiwix.kiwixmobile.utils.StyleUtils.dialogStyle;
|
import static org.kiwix.kiwixmobile.utils.StyleUtils.dialogStyle;
|
||||||
|
|
||||||
public class WebServerHelper {
|
public class WebServerHelper {
|
||||||
@ -99,7 +100,7 @@ public class WebServerHelper {
|
|||||||
if (port == 0) {
|
if (port == 0) {
|
||||||
throw new Exception();
|
throw new Exception();
|
||||||
}
|
}
|
||||||
webServer = new WebServer(port);
|
webServer = new WebServer(port, MAIN_PAGE_STORAGE_PATH);
|
||||||
webServer.start();
|
webServer.start();
|
||||||
return true;
|
return true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user