Skip to content

Commit

Permalink
replace all occurences (and not the first one) of theia-resource:
Browse files Browse the repository at this point in the history
Change-Id: Id29e37f5ab62a00f8982ef049b718f49124f8cd3
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
  • Loading branch information
benoitf committed Jan 14, 2019
1 parent d1410f7 commit b6f38a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-ext/src/main/browser/webview/webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class WebviewWidget extends BaseWidget {
}

setHTML(html: string) {
html = html.replace('theia-resource:/', '/webview/');
html = html.replace(/theia-resource:/g, '/webview/');
const newDocument = new DOMParser().parseFromString(html, 'text/html');
if (!newDocument || !newDocument.body) {
return;
Expand Down

0 comments on commit b6f38a6

Please sign in to comment.