From 070c8f2e1fafc3488d7498a978814b404fc0dbab Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 16 May 2021 06:38:20 +0000 Subject: [PATCH] [UPD] README.rst --- web_pwa_oca/static/description/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web_pwa_oca/static/description/index.html b/web_pwa_oca/static/description/index.html index 0feda31ac..1ffb5687d 100644 --- a/web_pwa_oca/static/description/index.html +++ b/web_pwa_oca/static/description/index.html @@ -453,8 +453,8 @@ need to use the following workaround:

  • Natural ‘async/await’ example (This breaks “_super” call):

     var MyClass = OdooClass.extend({
    -    myFunc: async function() {
    -        const mydata = await ...do await stuff...
    +    myFunc: async function() {
    +        const mydata = await ...do await stuff...
             return mydata;
         }
     });
    @@ -464,8 +464,8 @@ need to use the following workaround:

     var MyClass = OdooClass.extend({
         myFunc: function() {
    -        return new Promise(async (resolve, reject) => {
    -            const mydata = await ...do await stuff...
    +        return new Promise(async (resolve, reject) => {
    +            const mydata = await ...do await stuff...
                 return resolve(mydata);
             });
         }