Commit 6cd7c199 authored by Randall Leeds's avatar Randall Leeds

Use base-url to fill the document property

This should make sure that baseURI works completely even in IE.
parent 352c5822
baseURI = require('base-url')()
angular = require('angular')
require('angular-jwt')
......@@ -9,9 +10,6 @@ resolve =
configureDocument = ['$provide', ($provide) ->
$provide.decorator '$document', ($delegate) ->
baseURI = $delegate.prop('baseURI')
baseURI ?= $delegate.find('base').prop('href') # fallback
baseURI ?= $delegate.prop('URL') # fallback
$delegate.prop('baseURI', baseURI)
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment