diff --git a/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js b/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js index deb6206b5..0256043f3 100644 --- a/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js +++ b/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js @@ -36,6 +36,8 @@ function RemoteFunctions(config = {}) { // this will store the element that was clicked previously (before the new click) // we need this so that we can remove click styling from the previous element when a new element is clicked let previouslySelectedElement = null; + // Expose the currently selected element globally for external access + window.__current_ph_lp_selected = null; var req, timeout; function animateHighlight(time) { @@ -710,6 +712,7 @@ function RemoteFunctions(config = {}) { _clickHighlight.add(element, true); previouslySelectedElement = element; + window.__current_ph_lp_selected = element; } function disableHoverListeners() { @@ -1317,6 +1320,7 @@ function RemoteFunctions(config = {}) { } delete previouslySelectedElement._originalOutline; previouslySelectedElement = null; + window.__current_ph_lp_selected = null; } if (config.mode === 'edit') { diff --git a/tracking-repos.json b/tracking-repos.json index de562cdb6..f1f7f23ad 100644 --- a/tracking-repos.json +++ b/tracking-repos.json @@ -1,5 +1,5 @@ { "phoenixPro": { - "commitID": "854053fa95b3b6d9cb2b17ca72bab14223aef000" + "commitID": "0838471fe2cc3883de47965c29999bd92de22e00" } }