Skip to content

Commit 8301da7

Browse files
Drop old config
1 parent 6121046 commit 8301da7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/widget.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,11 @@ async function loadWidget(config: Config) {
220220
/**
221221
* 初始化看板娘小部件。
222222
* @param {string | Config} config - 看板娘配置或配置路径。
223-
* @param {string} [apiPath] - API 路径,如果 config 是字符串。
224223
*/
225-
function initWidget(config: string | Config, apiPath?: string) {
224+
function initWidget(config: string | Config) {
226225
if (typeof config === 'string') {
227-
config = {
228-
waifuPath: config,
229-
apiPath,
230-
};
226+
logger.error('Your config for Live2d initWidget is outdated. Please refer to https://github.com/stevenjoezhang/live2d-widget/blob/master/dist/autoload.js');
227+
return;
231228
}
232229
logger.setLevel(config.logLevel);
233230
document.body.insertAdjacentHTML(

0 commit comments

Comments
 (0)