When injecting code in the New Experiences (only possible with Browser Extension)
I use:
var isClassicSharePoint = typeof SP !== 'undefined';
So my generic library knows when to use SP.SOD and other stuff
Now SPFx does have a SP object... its just not the Classic SP Object
Question:
- What is the most reliable way of determining the 3 versions of SharePoint we now have?