Skip to content

Commit

Permalink
Inline webview main.js (#149983)
Browse files Browse the repository at this point in the history
For #145567

This inlines the `main.js` script that webview use. This saves us an extra request at the cost of currently having to maintain two copies of the source from `main.js`
  • Loading branch information
mjbvz authored May 20, 2022
1 parent 17c75e1 commit e9393b0
Show file tree
Hide file tree
Showing 4 changed files with 2,262 additions and 1,137 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export class WebviewProtocolProvider extends Disposable {
private static validWebviewFilePaths = new Map([
['/index.html', 'index.html'],
['/fake.html', 'fake.html'],
['/main.js', 'main.js'],
['/service-worker.js', 'service-worker.js'],
]);

Expand Down
Loading

0 comments on commit e9393b0

Please sign in to comment.