diff --git a/src/utils/getStyle.js b/src/utils/getStyle.js new file mode 100644 index 00000000..efc89f21 --- /dev/null +++ b/src/utils/getStyle.js @@ -0,0 +1,10 @@ +// todo +// temp getStyle fix for IE +const getStyle = (prop, node) => { + const root = node || document.querySelector(':root') + const value = window.getComputedStyle(root).getPropertyValue(prop).trim() + // console.log('utils/getStyle', value) + return value +} + +export default getStyle diff --git a/src/views/Charts.vue b/src/views/Charts.vue index fbca1689..bcea281d 100644 --- a/src/views/Charts.vue +++ b/src/views/Charts.vue @@ -1,34 +1,34 @@