Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import in browser #19

Closed
MelerEcckmanLawler opened this issue Nov 15, 2019 · 1 comment
Closed

Can't import in browser #19

MelerEcckmanLawler opened this issue Nov 15, 2019 · 1 comment

Comments

@MelerEcckmanLawler
Copy link

MelerEcckmanLawler commented Nov 15, 2019

import { setDriftlessTimeout, setDriftlessInterval, clearDriftless, } from 'driftless';

Does not work in browser, even inside <script type='module'></script>.

@MelerEcckmanLawler
Copy link
Author

MelerEcckmanLawler commented Nov 16, 2019

Solution:

`
<script src='https://wzrd.in/standalone/driftless@latest'></script>
<script type='module'>
'use strict'

      driftless.setDriftlessInterval(()=>{
        console.log('tick')
      }, 100)
    </script>

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant