Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 93032

Re: How to make at startup script that fits spread on open

$
0
0

Hi,

 

eventListener "afterOpen" is triggered twice - after doc opening and after applying a window to it.

In 1st case you are seeing an error since no window is applied yet.

 

You could check an event.target.constructor.name and run your function body if it is !="Document"

(just with 2nd case only)

 

Jarek


Viewing all articles
Browse latest Browse all 93032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>