Sha256: efe3774a56ed2f5cb8f72bfd8db764bc2f845dbd4a2b81768af0060ba0c9983d

Contents?: true

Size: 1.36 KB

Versions: 6

Compression:

Stored size: 1.36 KB

Contents

(function (global, factory) {
	typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
	typeof define === 'function' && define.amd ? define('GOVUKFrontend', factory) :
	(factory());
}(this, (function () { 'use strict';

	// @ts-nocheck
	(function (undefined) {

	// Detection from https://github.com/Financial-Times/polyfill-service/blob/master/packages/polyfill-library/polyfills/Document/detect.js
	var detect = ("Document" in this);

	if (detect) return

	if ((typeof WorkerGlobalScope === "undefined") && (typeof importScripts !== "function")) {

		if (this.HTMLDocument) { // IE8

			// HTMLDocument is an extension of Document.  If the browser has HTMLDocument but not Document, the former will suffice as an alias for the latter.
			this.Document = this.HTMLDocument;

		} else {

			// Create an empty function to act as the missing constructor for the document object, attach the document object as its prototype.  The function needs to be anonymous else it is hoisted and causes the feature detect to prematurely pass, preventing the assignments below being made.
			this.Document = this.HTMLDocument = document.constructor = (new Function('return function Document() {}')());
			this.Document.prototype = document;
		}
	}


	})
	.call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});

})));

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
govuk_publishing_components-41.1.2 app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Document.js
govuk_publishing_components-41.1.1 app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Document.js
govuk_publishing_components-41.1.0 app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Document.js
govuk_publishing_components-41.0.0 app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Document.js
govuk_publishing_components-40.1.0 app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Document.js
govuk_publishing_components-40.0.0 app/assets/javascripts/govuk_publishing_components/vendor/polyfills-govuk-frontend-v4/Document.js