chore: Clarify usage of window fields in UIWindowFontPicker.js

/puter/src/UI/UIWindowFontPicker.js
  45:12  error  'isString' is not defined             no-undef
  95:21  error  'scrollParentToChild' is not defined  no-undef
This commit is contained in:
Sam Atkins
2024-05-02 11:21:50 +01:00
parent c44e0ca737
commit 0ebcbe516c
+2 -2
View File
@@ -42,7 +42,7 @@ async function UIWindowFontPicker(options){
// set sensible defaults
if(arguments.length > 0){
// if first argument is a string, then assume it is the default color
if(isString(arguments[0])){
if(window.isString(arguments[0])){
options = {};
options.default = arguments[0];
}
@@ -92,7 +92,7 @@ async function UIWindowFontPicker(options){
onAppend: function(window){
let active_font = $(window).find('.font-selector-active');
if(active_font.length > 0){
scrollParentToChild($(window).find('.font-list').get(0), active_font.get(0));
window.scrollParentToChild($(window).find('.font-list').get(0), active_font.get(0));
}
},
window_class: 'window-login',