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:
Aria Minaei 2022-09-27 23:31:47 +02:00
parent ca9360fc29
commit d0fdd823eb

View file

@ -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
}