fix(core): update

This commit is contained in:
Philipp Kunz 2022-05-29 00:33:36 +02:00
parent 9fa8754a15
commit 28d9d62bb4
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smartntml',
version: '1.0.7',
version: '1.0.8',
description: 'lit-html for the backend'
}

View File

@ -16,6 +16,7 @@ export class Smartntml {
if (this.smartntmlSingletonDeferred) {
return this.smartntmlSingletonDeferred.promise;
}
this.smartntmlSingletonDeferred = plugins.smartpromise.defer();
const smartntmlInstance = await this.createAndInit();
this.smartntmlSingletonDeferred.resolve(smartntmlInstance);
return this.smartntmlSingletonDeferred.promise;