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
diff --git a/pagify.js b/pagify.js | |
index 051f1ce..577d798 100644 | |
--- a/pagify.js | |
+++ b/pagify.js | |
@@ -23,7 +23,10 @@ | |
// Run after loading if caching, otherwise run immediately | |
var runAfterLoading = function() { | |
self.switchPage = function(page) { | |
- page = page || window.location.hash.replace('#',''); | |
+ if(!page){ //if there's no page selected, go back to the default |
NewerOlder