Skip to content

Commit 1cfa84d

Browse files
committed
Add hint to enable JavaScript Sources feature in source view error
1 parent d396f27 commit 1cfa84d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

locales/en-US/app.ftl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,9 +1195,12 @@ SourceView--close-button =
11951195
## The string IDs here currently all start with SourceView for historical reasons.
11961196

11971197
# Displayed below SourceView--cannot-obtain-source, if the profiler does not
1198-
# know which URL to request source code from.
1199-
SourceView--no-known-cors-url =
1200-
There is no known cross-origin-accessible URL for this file.
1198+
# know which URL to request source code from. This can happen for JavaScript
1199+
# files when the "JavaScript Sources" feature is not enabled.
1200+
SourceView--no-known-cors-url1 =
1201+
There is no known cross-origin-accessible URL for this file. If this is a
1202+
JavaScript file, you may need to enable the “JavaScript Sources” feature in
1203+
about:profiling.
12011204
12021205
# Displayed below SourceView--cannot-obtain-source, if there was a network error
12031206
# when fetching the source code for a file.

src/components/app/CodeErrorOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function CodeErrorOverlay({ errors }: CodeErrorOverlayProps) {
1717
switch (error.type) {
1818
case 'NO_KNOWN_CORS_URL': {
1919
return (
20-
<Localized key={key} id="SourceView--no-known-cors-url">
20+
<Localized key={key} id="SourceView--no-known-cors-url1">
2121
<li>No known cross-origin-accessible URL.</li>
2222
</Localized>
2323
);

0 commit comments

Comments
 (0)