forked from extern/bruno
Merge pull request #486 from Its-treason/fix/r-replace-not-a-function
fix(#382): TypeError r.replace is not a function
This commit is contained in:
commit
33da3a1303
@ -87,7 +87,13 @@ const QueryResult = ({ item, collection, data, width, disableRunEventListener, h
|
|||||||
};
|
};
|
||||||
|
|
||||||
const activeResult = useMemo(() => {
|
const activeResult = useMemo(() => {
|
||||||
if (tab === 'preview' && mode.includes('html') && item.requestSent && item.requestSent.url) {
|
if (
|
||||||
|
tab === 'preview' &&
|
||||||
|
mode.includes('html') &&
|
||||||
|
item.requestSent &&
|
||||||
|
item.requestSent.url &&
|
||||||
|
typeof data === 'string'
|
||||||
|
) {
|
||||||
// Add the Base tag to the head so content loads properly. This also needs the correct CSP settings
|
// Add the Base tag to the head so content loads properly. This also needs the correct CSP settings
|
||||||
const webViewSrc = data.replace('<head>', `<head><base href="${item.requestSent.url}">`);
|
const webViewSrc = data.replace('<head>', `<head><base href="${item.requestSent.url}">`);
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user