From 0ebcbe516c8db77bc3a4a2a766989f9d0c6f7038 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 1 May 2024 16:49:42 +0100 Subject: [PATCH] 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 --- src/UI/UIWindowFontPicker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UI/UIWindowFontPicker.js b/src/UI/UIWindowFontPicker.js index a802e549..a3bcacf4 100644 --- a/src/UI/UIWindowFontPicker.js +++ b/src/UI/UIWindowFontPicker.js @@ -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',