Browse Source

updated example to support the safari browser; see #1965

codeClimate
Alexander Wunschik 8 years ago
parent
commit
6ce3a41d57
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>' + '</foreignObject>' +
'</svg>'; '</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. // Called when the Visualization API is loaded.
function draw() { function draw() {

Loading…
Cancel
Save