Unable to identify which is edit mode page & author page in author instance
Hi Everyone,
page Link: http://localhost:4502/editor.html/content/proj/in/en.html
http://localhost:4502/content/proj/in/en.html
I need to find which is edit mode page(editor.html) and without editor.html one, technically both are editor page only but still I have find it. I have tried with couple of things mentioned below but didn't worked.
window.Granite.author - this will come in both pages
window.Coral & window.Granite.DialogUtils - this will come only in editor.html page but it's not working because project client lib js loading before aem server script loading
Many identifications are there in editor.html it will work if we are checking in browser console, but via ui code it wont' work because before granite server script loading our client lib script will load quickly.
It will be better if you guys helped me on this, I have refered many things but nothing helped me. Thanks in advance.
CC: @arunpatidar @aanchalsikka @briankasingli
