Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
fix: mock font size to disable drawDOM
Browse files Browse the repository at this point in the history
  • Loading branch information
tsvetomir committed Dec 6, 2017
1 parent da64921 commit 72bebe6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/global-mocks.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Object.defineProperty(window, 'getComputedStyle', {
value: () => ({
getPropertyValue: () => ''
getPropertyValue: (prop) => {
// Report font-size of 0 to disable drawDOM text export
if (prop === 'font-size') {
return '0';
}

return '';
}
})
});

Expand Down

0 comments on commit 72bebe6

Please sign in to comment.