privateboard 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +5 -0
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/public/home.html +3 -3
package/dist/cli.js
CHANGED
|
@@ -2849,6 +2849,11 @@ var UTILITY_PREFERENCE = [
|
|
|
2849
2849
|
];
|
|
2850
2850
|
function utilityModelFor(fallback = null) {
|
|
2851
2851
|
const reachable = new Set(reachableModels().map((m) => m.modelV));
|
|
2852
|
+
const prefs = getPrefs();
|
|
2853
|
+
const userDefault = prefs.defaultModelV;
|
|
2854
|
+
if (userDefault && UTILITY_PREFERENCE.includes(userDefault) && reachable.has(userDefault)) {
|
|
2855
|
+
return userDefault;
|
|
2856
|
+
}
|
|
2852
2857
|
const carrier = activeCarrier();
|
|
2853
2858
|
if (carrier) {
|
|
2854
2859
|
const preferred = CHEAP_BY_CARRIER[carrier];
|