Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

TypeError: getComputedStyle(...).getPropertyValue is not a function

Object.defineProperty(window, 'getComputedStyle', {
    value: () => ({
        getPropertyValue: (prop) => {
            return '';
        }
    })
});
Source by github.com #
 
PREVIOUS NEXT
Tagged: #function
ADD COMMENT
Topic
Name
5+7 =