mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 12:03:09 -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 org.kiwix.kiwixmobile.R;
|
||||
|
||||
import static org.kiwix.kiwixmobile.main.MainActivity.MAIN_PAGE_STORAGE_PATH;
|
||||
import static org.kiwix.kiwixmobile.utils.StyleUtils.dialogStyle;
|
||||
|
||||
public class WebServerHelper {
|
||||
@ -99,7 +100,7 @@ public class WebServerHelper {
|
||||
if (port == 0) {
|
||||
throw new Exception();
|
||||
}
|
||||
webServer = new WebServer(port);
|
||||
webServer = new WebServer(port, MAIN_PAGE_STORAGE_PATH);
|
||||
webServer.start();
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user