Skip to content

Commit

Permalink
docs: Remove references to unversioned CDN links (#4792)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolodato authored Nov 1, 2024
1 parent 91d5cf6 commit d5cc2c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions frontend/common/code-help/install/install-js.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import Utils from 'common/utils/utils'

module.exports = ({ NPM_CLIENT, URL_CLIENT }) => `// npm
module.exports = ({ NPM_CLIENT }) => `// npm
npm i ${NPM_CLIENT} --save
// yarn
yarn add ${NPM_CLIENT}
// Or script tag
${Utils.escapeHtml(`<script src="${URL_CLIENT}"></script>`)}
`
1 change: 0 additions & 1 deletion frontend/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const keywords = {
NPM_NODE_CLIENT: 'flagsmith-nodejs',
SEGMENT_NAME: 'superUsers',
TRAIT_NAME: 'age',
URL_CLIENT: 'https://cdn.jsdelivr.net/npm/flagsmith/index.js',
USER_FEATURE_FUNCTION: 'myEvenCoolerFeature',
USER_FEATURE_NAME: 'my_even_cooler_feature',
USER_ID: 'user_123456',
Expand Down

0 comments on commit d5cc2c2

Please sign in to comment.