I create an aura component which can used in Lightning App Builder. I want to implement this feature: when in Lightning App Builder just show diagram.
So I want to ask about is there anyway to know aura component run under Lightning App Builder or not?
In this Aura Component, I used follow method to check if Aura Component run under Lightning App Builder or not, is this a correct way?
var inLightningAppBuilder = window.location.href.indexOf('flexipageEditor/surface.app?') >= 0;