Skip to content

Commit

Permalink
handling the rare case that one javascript file is loaded while the o…
Browse files Browse the repository at this point in the history
…ther is not loaded yet (when the next refresh is already under way)
  • Loading branch information
ahus1 committed Jun 18, 2019
1 parent fa5e0b4 commit b4ffa3a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,8 @@ public void changed(ObservableValue<? extends State> observable, State oldValue,
win.setMember("JavaPanelBridge", bridge);
JavaFxHtmlPanel.this.getWebViewGuaranteed().getEngine().executeScript(
"if ('__IntelliJTools' in window) {" +
"__IntelliJTools.processLinks();" +
"__IntelliJTools.pickSourceLine(" + lineCount + ", " + offset + ");" +
"__IntelliJTools.processLinks && __IntelliJTools.processLinks();" +
"__IntelliJTools.pickSourceLine && __IntelliJTools.pickSourceLine(" + lineCount + ", " + offset + ");" +
"}"
);
}
Expand Down

0 comments on commit b4ffa3a

Please sign in to comment.