PageSourceSearch

https://www.iabuk.com/modules/custom/iab_commerce/modules/commerce…ommerce_sagepay_offsite_iframe.js?v=11.3.14

js iabuk.com collected 2026-09-24 08:25:31 UTC 994 bytes, 25 lines download raw bytes

1(function($) {
2  Drupal.behaviors.commerceSagePayIFrame = {
3    attach: function (context, settings) {
4      const iframeLocation = location;
5      const browserLocation = top.location;
6      const params = new Proxy(new URLSearchParams(iframeLocation.search), {
7        get: (searchParams, prop) => searchParams.get(prop),
8      });
9      const destinationPath = params.destination;
10
11      // Determine if you're the current page being viewed from an iframe to break out.
12      if (browserLocation.href != iframeLocation.href) {
13        $('html').hide();
14
15        // If there's a destination query string parameter (path), then use it to break out of the iframe to the new location.
16        // Else break out of the iframe to display the current page.
17        if (destinationPath) {
18          top.location.href = iframeLocation.protocol + '//' + iframeLocation.host + destinationPath;
19        } else {
20          top.location.href = iframeLocation.href;
21        }
22      }
23    }
24  }
25})(jQuery);

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.