From 6ce3a41d5792f6c6099073443e6838aafbb2d5d9 Mon Sep 17 00:00:00 2001 From: Alexander Wunschik Date: Sun, 30 Oct 2016 10:37:43 +0100 Subject: [PATCH] updated example to support the safari browser; see #1965 --- examples/network/nodeStyles/HTMLInNodes.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/network/nodeStyles/HTMLInNodes.html b/examples/network/nodeStyles/HTMLInNodes.html index ded7d6a6..c2285850 100644 --- a/examples/network/nodeStyles/HTMLInNodes.html +++ b/examples/network/nodeStyles/HTMLInNodes.html @@ -40,11 +40,8 @@ '' + ''; - 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() {