visionmedia / page.js

Micro client-side router inspired by the Express router
http://visionmedia.github.com/page.js
7.67k stars 687 forks source link

ie11 sameOrigin detection fix #535

Closed 5im-0n closed 5 years ago

5im-0n commented 5 years ago

On ie11 loc.port returns an empty string if the port is 80. This commit fixes the sameOrigin detection function for ie11.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 92.116% when pulling 1e60b5234678ad2cafbbce19a7fdcf981eb080ec on S2-:ie11-sameOrigin into 19f60bc22a6495e041dae8e466443fd2e11c3132 on visionmedia:master.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 92.116% when pulling ee6422a2e4bde4475e7e12303518c8e806974fbe on S2-:ie11-sameOrigin into 19f60bc22a6495e041dae8e466443fd2e11c3132 on visionmedia:master.

matthewp commented 5 years ago

Can you add some comments? I'm afraid no one is going to understand that code in short order otherwise.

5im-0n commented 5 years ago

@matthewp sure. Here you go.

matthewp commented 5 years ago

Perfect, thanks!

blowery commented 5 years ago

@matthewp Any idea when this will get released to NPM?