Title: JS Error Fix
Last modified: April 4, 2025

---

# JS Error Fix

 *  Resolved [Jon Bromell](https://wordpress.org/support/users/jonb1987/)
 * (@jonb1987)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/js-error-fix/)
 * Hi Guys,
 * Your current save button js script throws console errors as the fetch is not 
   supported by the fetch API. Can you update it to the below or similar so as to
   fix the issue on future updates?
 *     ```wp-block-code
       window.addEventListener("load", function() {    const disableSaveButton = () => {        document.querySelectorAll(".pinterest-for-woocommerce-image-wrapper").forEach(function(button) {            button.style.display = "none";        });    };    const checkForPinterestExtension = () => {        const pinterestElement = document.querySelector('[data-pinterest-extension]');        if (pinterestElement) {            disableSaveButton();        }    };    checkForPinterestExtension();});
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjs-error-fix%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Justin (a11n)](https://wordpress.org/support/users/layoutd/)
 * (@layoutd)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/js-error-fix/#post-18399258)
 * Hi [@jonb1987](https://wordpress.org/support/users/jonb1987/),
 * Thanks for the report and the proposed solution. I’ve opened an issue in the 
   repo to follow up: [https://github.com/woocommerce/pinterest-for-woocommerce/issues/1117](https://github.com/woocommerce/pinterest-for-woocommerce/issues/1117)
 * Cheers
   Justin

Viewing 1 replies (of 1 total)

The topic ‘JS Error Fix’ is closed to new replies.

 * ![](https://ps.w.org/pinterest-for-woocommerce/assets/icon.svg?rev=2619817)
 * [Pinterest for WooCommerce](https://wordpress.org/plugins/pinterest-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/pinterest-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/pinterest-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pinterest-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pinterest-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Justin (a11n)](https://wordpress.org/support/users/layoutd/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/js-error-fix/#post-18399258)
 * Status: resolved