Skip to content

Commit

Permalink
-Update paths and names of injected script (currently just the contex…
Browse files Browse the repository at this point in the history
…t menu) for the webview so that they work in both dev and prod
  • Loading branch information
chrisknepper committed Jul 14, 2018
1 parent dbd7182 commit d49b65d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ Thumbs.db
# ignore everything in 'app' folder what had been generated from 'src' folder
/app/app.js
/app/background.js
/app/bridge.js
/app/**/*.map
2 changes: 1 addition & 1 deletion app/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<body>
<div id="app">
<!-- <webview id="androidMessagesWebview" src="https://davidwalsh.name/demo/notifications-api.php" autosize></webview> -->
<webview id="androidMessagesWebview" src="https://messages.android.com/" autosize preload="../src/helpers/webview.js"></webview>
<webview id="androidMessagesWebview" src="https://messages.android.com/" autosize preload="bridge.js"></webview>
<div id="loader"></div>
</div>
<script src="app.js"></script>
Expand Down
3 changes: 2 additions & 1 deletion build/webpack.app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ module.exports = env => {
return merge(base(env), {
entry: {
background: "./src/background.js",
app: "./src/app.js"
app: "./src/app.js",
bridge: "./src/helpers/webview/bridge.js"
},
output: {
filename: "[name].js",
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit d49b65d

Please sign in to comment.