Send main page path to the server

This commit is contained in:
Adeel Zafar 2019-07-28 16:50:42 +05:00
parent ade8940110
commit 31f0dbe389

View File

@ -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) {