renamed android's index.html to android.html

This commit is contained in:
Danny Coates 2018-11-06 11:21:14 -08:00
parent 732094a5ba
commit 99f6f53e40
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
3 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ class MainActivity : AppCompatActivity(), AdvancedWebView.Listener {
// val stream = contentResolver.openInputStream(imageUri) // val stream = contentResolver.openInputStream(imageUri)
} }
} }
mWebView!!.loadUrl("file:///android_asset/index.html") mWebView!!.loadUrl("file:///android_asset/android.html")
} }
@SuppressLint("NewApi") @SuppressLint("NewApi")

View File

@ -42,7 +42,7 @@ class AndroidIndexPlugin {
` `
.toString() .toString()
.replace(/\n\s{6}/g, '\n'); .replace(/\n\s{6}/g, '\n');
compilation.assets['index.html'] = { compilation.assets['android.html'] = {
source() { source() {
return page; return page;
}, },

View File

@ -21,7 +21,7 @@ module.exports = function(app, devServer) {
app.use(morgan('dev', { stream: process.stderr })); app.use(morgan('dev', { stream: process.stderr }));
function android(req, res) { function android(req, res) {
const index = devServer.middleware.fileSystem.readFileSync( const index = devServer.middleware.fileSystem.readFileSync(
devServer.middleware.getFilenameFromUrl('/index.html') devServer.middleware.getFilenameFromUrl('/android.html')
); );
res.set('Content-Type', 'text/html'); res.set('Content-Type', 'text/html');
res.send(index); res.send(index);