From d494d7f0abaf740ce6fdae10146915b7cf61699b Mon Sep 17 00:00:00 2001 From: kudo-sync-bot Date: Wed, 25 Dec 2024 02:29:26 -0800 Subject: [PATCH] =?UTF-8?q?Renamed=20`name`=20in=20`import`=20functions=20?= =?UTF-8?q?to=20`depName`=20for=20improved=20clarity=20=E2=86=9E=20[auto-s?= =?UTF-8?q?ync=20from=20https://github.com/KudoAI/chatgpt.js-chrome-starte?= =?UTF-8?q?r]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- starters/chrome/extension/components/icons.js | 2 +- starters/chrome/extension/components/modals.js | 2 +- starters/chrome/extension/lib/dom.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/starters/chrome/extension/components/icons.js b/starters/chrome/extension/components/icons.js index 647c1a178..1a3971ce5 100644 --- a/starters/chrome/extension/components/icons.js +++ b/starters/chrome/extension/components/icons.js @@ -3,7 +3,7 @@ window.icons = { dependencies: { import(dependencies) { // { app } - for (const name in dependencies) this[name] = dependencies[name] } + for (const depName in dependencies) this[depName] = dependencies[depName] } }, create({ name, size = 16, width, height, ...additionalAttrs }) { diff --git a/starters/chrome/extension/components/modals.js b/starters/chrome/extension/components/modals.js index fd56efb1d..6ccd593f1 100644 --- a/starters/chrome/extension/components/modals.js +++ b/starters/chrome/extension/components/modals.js @@ -6,7 +6,7 @@ window.modals = { dependencies: { import(dependencies) { // { app, env } - for (const name in dependencies) this[name] = dependencies[name] } + for (const depName in dependencies) this[depName] = dependencies[depName] } }, alert(title = '', msg = '', btns = '', checkbox = '', width = '') { // generic one from chatgpt.alert() diff --git a/starters/chrome/extension/lib/dom.js b/starters/chrome/extension/lib/dom.js index 65342df84..9f155d078 100644 --- a/starters/chrome/extension/lib/dom.js +++ b/starters/chrome/extension/lib/dom.js @@ -2,7 +2,7 @@ window.dom = { dependencies: { import(dependencies) { // { env) } - for (const name in dependencies) this[name] = dependencies[name] } + for (const depName in dependencies) this[depName] = dependencies[depName] } }, create: {