From d93bb740685a6f37ac21a1de8dd22058b6f20b46 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 31 Aug 2016 12:29:38 +0200 Subject: [PATCH] Use ol.global.getComputedStyle instead of window.getComputedStyle --- src/ol/color.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/color.js b/src/ol/color.js index 338a23446b..2808b0156c 100644 --- a/src/ol/color.js +++ b/src/ol/color.js @@ -83,7 +83,7 @@ ol.color.fromNamed = function(color) { var el = document.createElement('div'); el.style.color = color; document.body.appendChild(el); - var rgb = window.getComputedStyle(el).color; + var rgb = ol.global.getComputedStyle(el).color; document.body.removeChild(el); return rgb; };