Log instead of warn when studio is initialized already
This should make it a little cleaner when `studio.initialize()` is called in a hot-reloaded module.
This commit is contained in:
parent
ca9360fc29
commit
d0fdd823eb
1 changed files with 2 additions and 2 deletions
|
@ -116,8 +116,8 @@ export class Studio {
|
|||
|
||||
async initialize(opts?: Parameters<IStudio['initialize']>[0]) {
|
||||
if (this._initializeFnCalled) {
|
||||
console.warn(
|
||||
`\`studio.initialize()\` is already called. You only need to call \`studio.initialize()\` once.`,
|
||||
console.log(
|
||||
`\`studio.initialize()\` is already called. Ignoring subsequent calls.`,
|
||||
)
|
||||
return this._initializedDeferred.promise
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue