Skip to content

Commit

Permalink
Merge pull request #99 from Financial-Times/CON-1299-fix-library-used…
Browse files Browse the repository at this point in the history
…-from-npm

fix o-overlay import compatibility with npm and bower
  • Loading branch information
gyss committed Nov 8, 2021
2 parents cb17f6e + e6939c0 commit 9f20471
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
@@ -1,4 +1,7 @@
const Overlay = require('o-overlay').default;
// o-overlay export is different depending on if n-feedback is being imported using bower or npm
let Overlay = require('o-overlay');
Overlay = Overlay.default || Overlay;

const surveyBuilder = require('./src/survey-builder');
const postResponse = require('./src/post-response');
const getAdditionalInfo = require('./src/get-additional-info');
Expand Down

0 comments on commit 9f20471

Please sign in to comment.