mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Use http for SVG namespace URLs which were changed to https for SonarQube fixes. #5943
This commit is contained in:
@@ -295,7 +295,7 @@ function PlanSVG({planData, zoomFactor, fitZoomFactor, ...props}) {
|
||||
}, [planData.width]);
|
||||
|
||||
return (
|
||||
<svg height={planData.height*zoomFactor} width={planData.width*zoomFactor} version="1.1" xmlns="https://www.w3.org/2000/svg">
|
||||
<svg height={planData.height*zoomFactor} width={planData.width*zoomFactor} version="1.1" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
{Object.keys(props.ctx.arrows).map((arr_id, i)=>{
|
||||
let arrowPoints = [
|
||||
|
||||
@@ -10,7 +10,7 @@ import getApiInstance from '../api_instance';
|
||||
|
||||
function convertImageURLtoDataURI(api, image) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
let href = image.getAttribute('href') || image.getAttributeNS('https://www.w3.org/1999/xlink', 'href');
|
||||
let href = image.getAttribute('href') || image.getAttributeNS('http://www.w3.org/1999/xlink', 'href');
|
||||
api.get(href).then(({data})=>{
|
||||
image.setAttribute('href', 'data:image/svg+xml;base64,'+window.btoa(data));
|
||||
resolve();
|
||||
|
||||
Reference in New Issue
Block a user