mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 09:23:52 -05:00
Fix CppReference lookup functionality (#8207)
This commit is contained in:
@@ -1065,7 +1065,9 @@ export class Editor extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Edit
|
||||
if (cpprefLangs.includes(preferredLanguage)) {
|
||||
langTag = preferredLanguage;
|
||||
}
|
||||
const url = 'https://' + langTag + '.cppreference.com/mwiki/index.php?search=' + encodeURIComponent(word.word);
|
||||
const url =
|
||||
'https://www.google.com/search?q=' +
|
||||
encodeURIComponent(word.word + ' site:' + langTag + '.cppreference.com');
|
||||
window.open(url, '_blank', 'noopener');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user