Skip to content

Instantly share code, notes, and snippets.

@wilf312
Created December 19, 2013 02:35
Show Gist options
  • Save wilf312/8033483 to your computer and use it in GitHub Desktop.
Save wilf312/8033483 to your computer and use it in GitHub Desktop.
スマホのブラウザバックでページをリロードさせる。 ref: http://qiita.com/wilf312/items/4634c5cab364896b92db
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