Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Jan 26, 2017
1 parent faffa55 commit 6ba4282
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/parts/html/browser/webview-pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function styleBody(body) {
};

function getTarget() {
return document.getElementById('_target');;
return document.getElementById('_target');
};

const ipcRenderer = require('electron').ipcRenderer;
Expand Down Expand Up @@ -130,7 +130,7 @@ document.addEventListener("DOMContentLoaded", function (event) {

// workaround for https://github.com/Microsoft/vscode/issues/12865
// check new scrollTop and reset if neccessary
setTimeout(() => {
setTimeout(function () {
if (scrollTop !== newFrame.contentDocument.body.scrollTop) {
newFrame.contentDocument.body.scrollTop = scrollTop;
}
Expand Down

0 comments on commit 6ba4282

Please sign in to comment.