Browse Source

Merge pull request #2248 from almende/issue1965

updated example to support the safari browser
codeClimate
yotamberk 7 years ago
committed by GitHub
parent
commit
f0582da100
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      examples/network/nodeStyles/HTMLInNodes.html

+ 1
- 4
examples/network/nodeStyles/HTMLInNodes.html View File

@ -40,11 +40,8 @@
'</foreignObject>' +
'</svg>';
var DOMURL = window.URL || window.webkitURL || window;
var img = new Image();
var svg = new Blob([data], {type: 'image/svg+xml;charset=utf-8'});
var url = DOMURL.createObjectURL(svg);
var url = "data:image/svg+xml;charset=utf-8,"+ encodeURIComponent(svg);
// Called when the Visualization API is loaded.
function draw() {

Loading…
Cancel
Save