Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Module export and import example
- //title.js
- export const gametitle = "My Rogue";
- //main.js
- import {gametitle} from './title.js';
- (function(w) {
- ...
- //main.js line 954 change
- for (const a in attrs) { node[a] = attrs[a]; }
- //index.html
- <script type="module" src="main.js" id="main"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement