-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.bundle.js
1 lines (1 loc) · 3.17 KB
/
404.bundle.js
1
!function(e){var n={};function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(o,r,function(n){return e[n]}.bind(null,r));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/",t(t.s=4943)}({4943:function(module,exports,__webpack_require__){eval("module.exports = __webpack_require__(4944);\n\n\n//# sourceURL=webpack:///multi_./src/client/404?")},4944:function(module,exports){eval("/**\n *\n * ____ _ ___ _ _ _ _ ___ ___ ____ ____ ____ ____ ____ ___ ____\n * | __ | | |__| | | |__] |__] |__| | __ |___ [__ [__ |__] |__|\n * |__] | | | | |__| |__] | | | |__] |___ ___] ___] | | |\n *\n * Easy way to enable Single Page Applications for GitHub Pages\n *\n * This project was released under MIT license.\n *\n * @link https://github.com/rafrex/spa-github-pages\n * @author Rafael Pedicini <[email protected]>\n * @link http://websemantics.ca\n * @author Adnan M.Sagar, PhD. <[email protected]>\n *\n * @param {Object} location, the document current location\n * @param {Boolean} projectPages, true by default, https://help.github.com/articles/user-organization-and-project-pages\n *\n */\n(function (location, projectPages) {\n var repo = projectPages ? '/' + location.pathname.split('/')[1] : '';\n /* redirect all 404 trafic to index.html */\n function redirect() {\n location.replace(location.protocol + '//' + location.hostname + (location.port ? ':' + location.port : '') + repo + '/?' +\n (location.pathname ? 'p=' + location.pathname.replace(/&/g, '~and~').replace(repo, '') : '') +\n (location.search ? '&q=' + location.search.slice(1).replace(/&/g, '~and~') : '') +\n (location.hash));\n }\n /* resolve 404 redirects into internal routes */\n function resolve() {\n if (location.search) {\n var q = {};\n location.search.slice(1).split('&').forEach(function (v) {\n var a = v.split('=');\n q[a[0]] = a.slice(1).join('=').replace(/~and~/g, '&');\n });\n if (q.p !== undefined) {\n window.history.replaceState(null, null, repo + (q.p || '') +\n (q.q ? ('?' + q.q) : '') +\n location.hash);\n }\n }\n }\n /* if current document is 404 page page, redirect to index.html otherwise resolve */\n document.title === '404' ? redirect() : resolve();\n})(window.location, false);\n\n\n//# sourceURL=webpack:///./src/client/404.ts?")}});