From 71d87e18bd8b75273e962e6ccf6193576ae81264 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 25 Mar 2021 16:53:01 +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 1ffb5687d..0feda31ac 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);
             });
         }