PageSourceSearch

https://www.inpsych.com.my/wp-content/plugins/translatepress-multi…/js/trp-frontend-compatibility.js?ver=2.9.3

js inpsych.com.my collected 2026-10-01 14:01:31 UTC 777 bytes, 17 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function(event) {
2    function trpClearWooCartFragments(){
3
4        // clear WooCommerce cart fragments when switching language
5        var trp_language_switcher_urls = document.querySelectorAll(".trp-language-switcher-container a:not(.trp-ls-disabled-language)");
6
7        for (i = 0; i < trp_language_switcher_urls.length; i++) {
8            trp_language_switcher_urls[i].addEventListener("click", function(){
9                if ( typeof wc_cart_fragments_params !== 'undefined' && typeof wc_cart_fragments_params.fragment_name !== 'undefined' ) {
10                    window.sessionStorage.removeItem(wc_cart_fragments_params.fragment_name);
11                }
12            });
13        }
14    }
15
16    trpClearWooCartFragments();
17});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.