Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
fix(aurelia-authentication): add ie9 window.origin polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
doktordirk committed May 19, 2016
1 parent 7c3734f commit a06e66b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/aurelia-authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ import './authFilter';
* @param {{}|Function} config
*/
function configure(aurelia, config) {
// ie9 polyfill
if (!window.location.origin) {
window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
}

aurelia.globalResources('./authFilter');

const baseConfig = aurelia.container.get(BaseConfig);
Expand Down

0 comments on commit a06e66b

Please sign in to comment.