mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-10 12:37:06 +08:00
Make work with hash urls (no html 5)
This commit is contained in:
@@ -19,8 +19,10 @@ angular.module("sideBySide").service "route",
|
||||
|
||||
@params.base = '' if 'base' not of @params
|
||||
|
||||
@appUrl = $location.absUrl()
|
||||
.substring(0, $location.absUrl().length - $location.url().length)
|
||||
absUrl = $location.absUrl()
|
||||
@appUrl = absUrl.substring(0, absUrl.length - $location.url().length)
|
||||
if @appUrl.substring(@appUrl.length - 2) == '/#'
|
||||
@appUrl = @appUrl.substring(0, @appUrl.length - 2)
|
||||
|
||||
getValue = (value) ->
|
||||
if typeof value == 'object'
|
||||
|
||||
Reference in New Issue
Block a user