Created
December 19, 2013 02:35
-
-
Save wilf312/8033483 to your computer and use it in GitHub Desktop.
スマホのブラウザバックでページをリロードさせる。 ref: http://qiita.com/wilf312/items/4634c5cab364896b92db
This file contains 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
ContentObj.setEventBrowswerBack = function() { | |
window.onpageshow = function() { | |
if (event.persisted) { | |
location.reload(); | |
} | |
}; | |
}; | |
// イベントセット | |
ContentObj.setEventBrowswerBack(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment