renamed android's index.html to android.html
This commit is contained in:
parent
732094a5ba
commit
99f6f53e40
@ -56,7 +56,7 @@ class MainActivity : AppCompatActivity(), AdvancedWebView.Listener {
|
||||
// val stream = contentResolver.openInputStream(imageUri)
|
||||
}
|
||||
}
|
||||
mWebView!!.loadUrl("file:///android_asset/index.html")
|
||||
mWebView!!.loadUrl("file:///android_asset/android.html")
|
||||
}
|
||||
|
||||
@SuppressLint("NewApi")
|
||||
|
@ -42,7 +42,7 @@ class AndroidIndexPlugin {
|
||||
`
|
||||
.toString()
|
||||
.replace(/\n\s{6}/g, '\n');
|
||||
compilation.assets['index.html'] = {
|
||||
compilation.assets['android.html'] = {
|
||||
source() {
|
||||
return page;
|
||||
},
|
||||
|
@ -21,7 +21,7 @@ module.exports = function(app, devServer) {
|
||||
app.use(morgan('dev', { stream: process.stderr }));
|
||||
function android(req, res) {
|
||||
const index = devServer.middleware.fileSystem.readFileSync(
|
||||
devServer.middleware.getFilenameFromUrl('/index.html')
|
||||
devServer.middleware.getFilenameFromUrl('/android.html')
|
||||
);
|
||||
res.set('Content-Type', 'text/html');
|
||||
res.send(index);
|
||||
|
Loading…
Reference in New Issue
Block a user