```coffeescript
app = angular.module 'draw', [ 'ngRoute' ]

app.config ($locationProvider) ->

    # if window.history && window.history.pushState
    $locationProvider.html5Mode true

module.exports = app```

Add compatibility check for html5 routing mode
user
```coffeescript
app = angular.module 'draw', [ 'ngRoute' ]

app.config ($locationProvider) ->

    if window.history && window.history.pushState
        $locationProvider.html5Mode true

module.exports = app```
assistant