Enable strict mode and tweak (default) page size.
authorChris Jaekl <cejaekl@yahoo.com>
Wed, 15 Nov 2017 12:59:36 +0000 (21:59 +0900)
committerChris Jaekl <cejaekl@yahoo.com>
Wed, 15 Nov 2017 12:59:36 +0000 (21:59 +0900)
app/lib.js

index 6edaa47d2d858a6919ba5ca8f75acbc021297c01..4a77ffc6e7950bdbe68fc5a1876aee71bafd296a 100644 (file)
@@ -1,6 +1,8 @@
 //QuanLib:  eBook Library
 //(C) 2017 by Christian Jaekl (cejaekl@yahoo.com)
 
+'use strict';
+
 var g_state = {
     cache: [],
     count: 0,
@@ -12,7 +14,7 @@ var g_state = {
     ids: [],
     last: (-1),
     map: {},    // map from book.Id to index into cache[]
-    pageSize: 48,
+    pageSize: 20,
     tooltip: {
         bookId: undefined,
         milliSecs: 500,     // time to wait before displaying tooltip