Skip to content

Commit b582ee3

Browse files
Fix typo
1 parent 5f9511a commit b582ee3

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"url": "git+https://github.com/stevenjoezhang/live2d-widget.git"
2323
},
2424
"keywords": [
25-
"Live2d",
25+
"Live2D",
2626
"WebGL"
2727
],
2828
"author": "stevenjoezhang <stevenjoezhang@gmail.com>",

src/logger.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,25 @@ class Logger {
2525

2626
error(message: string, ...args: any[]) {
2727
if (this.shouldLog('error')) {
28-
console.error('[Live2d Widget][ERROR]', message, ...args);
28+
console.error('[Live2D Widget][ERROR]', message, ...args);
2929
}
3030
}
3131

3232
warn(message: string, ...args: any[]) {
3333
if (this.shouldLog('warn')) {
34-
console.warn('[Live2d Widget][WARN ]', message, ...args);
34+
console.warn('[Live2D Widget][WARN ]', message, ...args);
3535
}
3636
}
3737

3838
info(message: string, ...args: any[]) {
3939
if (this.shouldLog('info')) {
40-
console.log('[Live2d Widget][INFO ]', message, ...args);
40+
console.log('[Live2D Widget][INFO ]', message, ...args);
4141
}
4242
}
4343

4444
trace(message: string, ...args: any[]) {
4545
if (this.shouldLog('trace')) {
46-
console.log('[Live2d Widget][TRACE]', message, ...args);
46+
console.log('[Live2D Widget][TRACE]', message, ...args);
4747
}
4848
}
4949
}

src/model.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class ModelManager {
151151
return 2;
152152
}
153153

154-
async loadLive2d(modelSettingPath: string, modelSetting: object) {
154+
async loadLive2D(modelSettingPath: string, modelSetting: object) {
155155
const version = this.checkModelVersion(modelSetting);
156156
if (version === 2) {
157157
if (!this.model) {
@@ -213,7 +213,7 @@ class ModelManager {
213213
let textures = textureCache[modelTexturesId];
214214
if (typeof textures === 'string') textures = [textures];
215215
modelSetting.textures = textures;
216-
await this.loadLive2d(modelSettingPath, modelSetting);
216+
await this.loadLive2D(modelSettingPath, modelSetting);
217217
}
218218
showMessage(message, 4000, 10);
219219
}
@@ -235,7 +235,7 @@ class ModelManager {
235235
let textures = textureCache[this.modelTexturesId];
236236
if (typeof textures === 'string') textures = [textures];
237237
modelSetting.textures = textures;
238-
await this.loadLive2d(modelSettingPath, modelSetting);
238+
await this.loadLive2D(modelSettingPath, modelSetting);
239239
showMessage('我的新衣服好看嘛?', 4000, 10);
240240
}
241241
}

src/widget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ async function loadWidget(config: Config) {
204204
*/
205205
function initWidget(config: string | Config) {
206206
if (typeof config === 'string') {
207-
logger.error('Your config for Live2d initWidget is outdated. Please refer to https://github.com/stevenjoezhang/live2d-widget/blob/master/dist/autoload.js');
207+
logger.error('Your config for Live2D initWidget is outdated. Please refer to https://github.com/stevenjoezhang/live2d-widget/blob/master/dist/autoload.js');
208208
return;
209209
}
210210
logger.setLevel(config.logLevel);

0 commit comments

Comments
 (0)