Prevent errors in iframe gadgets with dist dir
Merge pull request #148 from Versal/fix/dist-dir-error

Prevent errors in iframe gadgets with dist dir