Title: Javascript error: Failed to execute ‘getComputedStyle’ on ‘Window’
Last modified: September 9, 2017

---

# Javascript error: Failed to execute ‘getComputedStyle’ on ‘Window’

 *  [tf5_bassist](https://wordpress.org/support/users/tf5_bassist/)
 * (@tf5_bassist)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-failed-to-execute-getcomputedstyle-on-window-2/)
 * I am receiving this error that was also documented and marked as resolved in 
   [this previous post](https://wordpress.org/support/topic/javascript-error-failed-to-execute-getcomputedstyle-on-window).
   On Elementor version 1.7.2, and the error shows up in the console. Currently,
   I’m assuming that this error is what is causing conflict with the map refresh
   on a directory plugin, as when Elementor is deactivated, the issue is resolved.
 *     ```
       jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1
       frontend.min.js?ver=1.7.2:2 Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
           at Object.getCurrentDeviceMode (frontend.min.js?ver=1.7.2:2)
           at u (frontend.min.js?ver=1.7.2:2)
           at HTMLDocument.init (frontend.min.js?ver=1.7.2:2)
           at i (jquery.js?ver=1.12.4:2)
           at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
           at Function.ready (jquery.js?ver=1.12.4:2)
           at HTMLDocument.K (jquery.js?ver=1.12.4:2)
       getCurrentDeviceMode @ frontend.min.js?ver=1.7.2:2
       u @ frontend.min.js?ver=1.7.2:2
       init @ frontend.min.js?ver=1.7.2:2
       i @ jquery.js?ver=1.12.4:2
       fireWith @ jquery.js?ver=1.12.4:2
       ready @ jquery.js?ver=1.12.4:2
       K @ jquery.js?ver=1.12.4:2
       ```
   
 * Details:
    WP 4.8.1 Elementor 1.7.2 Fullby Premium theme

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [garnaga](https://wordpress.org/support/users/garnaga/)
 * (@garnaga)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-failed-to-execute-getcomputedstyle-on-window-2/#post-9485892)
 * I have the same problem with Elementor
 * WP 4.8.1
    Elementor 1.7.2
 *  Thread Starter [tf5_bassist](https://wordpress.org/support/users/tf5_bassist/)
 * (@tf5_bassist)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-failed-to-execute-getcomputedstyle-on-window-2/#post-9486553)
 * Oddly enough, I checked on my live environment, and so far I’m not getting the
   error. I’m trying to track down the cause of it in my dev environment, but so
   far no luck.
 *  [Raúl González](https://wordpress.org/support/users/ragose/)
 * (@ragose)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-failed-to-execute-getcomputedstyle-on-window-2/#post-9486753)
 * I have the same error with getComputedStyle in 2 websites…
 *  [masooma09](https://wordpress.org/support/users/masooma09/)
 * (@masooma09)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-failed-to-execute-getcomputedstyle-on-window-2/#post-9621182)
 * Anyone got it fixed? I have updated the plugin to 1.7.12 and the issue persists.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Javascript error: Failed to execute ‘getComputedStyle’ on ‘Window’’ is
closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [masooma09](https://wordpress.org/support/users/masooma09/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-failed-to-execute-getcomputedstyle-on-window-2/#post-9621182)
 * Status: not resolved