Merge pull request #1330 from paulkaplan/glow-on-stack-click

Always glow threads that come from stack clicks
This commit is contained in:
Paul Kaplan 2018-07-13 07:53:05 -04:00 committed by GitHub
commit e463781bc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1490,7 +1490,7 @@ class Runtime extends EventEmitter {
const target = thread.target; const target = thread.target;
if (target === this._editingTarget) { if (target === this._editingTarget) {
const blockForThread = thread.blockGlowInFrame; const blockForThread = thread.blockGlowInFrame;
if (thread.requestScriptGlowInFrame) { if (thread.requestScriptGlowInFrame || thread.stackClick) {
let script = target.blocks.getTopLevelScript(blockForThread); let script = target.blocks.getTopLevelScript(blockForThread);
if (!script) { if (!script) {
// Attempt to find in flyout blocks. // Attempt to find in flyout blocks.