diff --git a/code.user.js b/code.user.js
index f5b39ad..9dddea5 100644
--- a/code.user.js
+++ b/code.user.js
@@ -2915,6 +2915,12 @@
$('.market_listing_table_header', market_listing_see.parent())
.append('');
+ let pageSize = parseInt(getSettingWithDefault(SETTING_MARKET_PAGE_COUNT), 10);
+
+ if (isNaN(pageSize) || pageSize < 1) {
+ pageSize = settingDefaults[SETTING_MARKET_PAGE_COUNT];
+ }
+
var options = {
valueNames: [
'market_listing_game_name', 'market_listing_item_name_link', 'market_listing_price',
@@ -2938,7 +2944,7 @@
left: 100,
right: 100
}],
- page: parseInt(getSettingWithDefault(SETTING_MARKET_PAGE_COUNT))
+ page: pageSize,
};
var list = new List(market_listing_see.parent().attr('id'), options);
@@ -3576,7 +3582,7 @@
'
' +
'' +
'