function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Donatien VeronDonatien Veron 

window.opener unusable in Lightning

Hello,

I need to know the opener of a lightning application. for this, I would use window.opener. The value of window.opener is not managed by javascript (execution of code stops) when the current window have been opened by another one.

What is the reason why this regular environment variable is not useable in ligthning ?
Abhishek Sagar 1Abhishek Sagar 1
Since lightning uses aura framework written in javascript, it imposes certain restictions with regular Javascript functions. You can not use a lot of functions as such. Also with locker services enabled you can not use a lot of regular JS functions.