[Pas2js] htmlwidget in pas2j 2.2.0: pas.JS.isUndefined is not a function (fwd)

Michael Van Canneyt michael at freepascal.org
Tue Aug 30 13:23:02 CEST 2022


I replied in private by accident.

So I'm forwarding my answer in case someone else meets this case...

Michael.

---------- Forwarded message ----------
Date: Tue, 30 Aug 2022 12:47:29 +0200 (CEST)
From: Michael Van Canneyt <michael at freepascal.org>
To: Luca Olivetti <luca at ventoso.org>
Subject: Re: [Pas2js] htmlwidget in pas2j 2.2.0: pas.JS.isUndefined is not a
     function



On Tue, 30 Aug 2022, Luca Olivetti wrote:

> El 29/8/22 a les 16:01, Luca Olivetti ha escrit:
> 
> Hello,
> 
> I don't know if it's because I'm not using fpc trunk, but I had to add
> 
> Session.InitSession(ARequest, nil, nil)

That should be

   CheckSession(ARequest);

After CORS.HandleRequest(). This is fixed in trunk.

Michael.


More information about the Pas2js mailing list