Mercurial > zeropaste
comparison app/assets/javascripts/zp.clean_notice.coffee @ 370:5a4d31e97937
Remove extra file extensions.
author | edogawaconan <me@myconan.net> |
---|---|
date | Tue, 14 Apr 2015 00:22:07 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
369:c0d4e6115642 | 370:5a4d31e97937 |
---|---|
1 window.zp.cleanNotice = | |
2 init: -> | |
3 if (history.replaceState) | |
4 queryString = "?#{window.location.search.slice(1).replace(/(^|&)notice=[^&]*(&?)/, "$2")}" | |
5 newPath = window.location.pathname | |
6 newPath += queryString if queryString != "?" | |
7 newPath += window.location.hash | |
8 history.replaceState null, "", newPath |