Created
November 5, 2017 11:10
-
-
Save mak00s/fcff3d70aa8b4690bb9e49c38f726617 to your computer and use it in GitHub Desktop.
キャンペーン用URLパラメータをキレイにする(s_code.js)part 2 of 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// s.t();の後に下記を追加する | |
if (location.hash && location.hash.match(/#cid=.+/)) { | |
if ('replaceState' in history) | |
history.replaceState('', document.title, location.pathname + location.search); | |
else window.location.hash = ''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment