Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Is it possible to use id widget as js deliver sript? #62

Open
milos5593 opened this issue Nov 30, 2020 · 0 comments
Open

Is it possible to use id widget as js deliver sript? #62

milos5593 opened this issue Nov 30, 2020 · 0 comments

Comments

@milos5593
Copy link

milos5593 commented Nov 30, 2020

I am trying to include id widget as a js deliver script, but I get exports is not defined in the console.

Here is my code:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Content Manager</title>
        <!-- Include the script that enables Netlify Identity on this page. -->
        <!-- <script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script> -->
    </head>
    <body>
        <!-- Include the script that builds the page and powers Netlify CMS -->
        <script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
         <script src="https://cdn.jsdelivr.net/npm/@ncwidgets/id@0.8.1/dist/index.min.js"></script> 

        <script type="text/javascript">
            CMS.registerWidget(Widget)
        </script>
    </body>
</html>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant