mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
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:
parent
57a3e28460
commit
ff2bb13cc9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user