Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Fixed reverse highlight in Multibrowser Live Preview
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh95 committed Jul 4, 2017
1 parent deeb74e commit 7e3b1b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/LiveDevelopment/LiveDevMultiBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,8 @@ define(function (require, exports, module) {
/**
* Initialize the LiveDevelopment module.
*/
function init() {
function init(config) {
exports.config = config;
MainViewManager
.on("currentFileChange", _onFileChange);
DocumentManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ define(function (require, exports, module) {
DocumentObserver = require("text!LiveDevelopment/MultiBrowserImpl/protocol/remote/DocumentObserver.js"),
RemoteFunctions = require("text!LiveDevelopment/Agents/RemoteFunctions.js"),
EditorManager = require("editor/EditorManager"),
LiveDevMultiBrowser = require("LiveDevelopment/LiveDevMultiBrowser"),
HTMLInstrumentation = require("language/HTMLInstrumentation");

/**
Expand Down Expand Up @@ -213,7 +214,7 @@ define(function (require, exports, module) {
// Inject DocumentObserver into the browser (tracks related documents)
script += DocumentObserver;
// Inject remote functions into the browser.
script += "window._LD=(" + RemoteFunctions + "())";
script += "window._LD=(" + RemoteFunctions + "(" + JSON.stringify(LiveDevMultiBrowser.config) + "))";
return "<script>\n" + script + "</script>\n";
}

Expand Down

0 comments on commit 7e3b1b1

Please sign in to comment.