diff --git a/edivorce/apps/core/static/js/functions.js b/edivorce/apps/core/static/js/functions.js index 15adfe80..090007a6 100644 --- a/edivorce/apps/core/static/js/functions.js +++ b/edivorce/apps/core/static/js/functions.js @@ -1,3 +1,12 @@ +// Internet Explorer 11 implementation of String does not have the startsWith function +// so manually add it to prevent an error on load. +if (!String.prototype.startsWith) { + String.prototype.startsWith = function(searchString, position){ + position = position || 0; + return this.substr(position, searchString.length) === searchString; + }; +} + // Show or Hide Information Section // Using following data attributes: // data-target_id: id of information section