Bug 1441825 - Clicking CSS Error links in Browser Console throws 'onClick is not a function' r=nchevobbe

MozReview-Commit-ID: DoMWc2JCPnl

--HG--
extra : rebase_source : 0f4221aaf9a368af9c4e4b57a7e432328b435279
This commit is contained in:
Michael Ratcliffe 2018-02-28 14:20:52 +00:00
parent 57a3e28460
commit ff2bb13cc9

View File

@ -212,7 +212,8 @@ class Message extends Component {
let onFrameClick;
if (serviceContainer && frame) {
if (source === MESSAGE_SOURCE.CSS) {
onFrameClick = serviceContainer.onViewSourceInStyleEditor;
onFrameClick = serviceContainer.onViewSourceInStyleEditor
|| serviceContainer.onViewSource;
} else if (/^Scratchpad\/\d+$/.test(frame.source)) {
onFrameClick = serviceContainer.onViewSourceInScratchpad
|| serviceContainer.onViewSource;