partey_workadventure/maps/tests/Modules/script.js
David Négrier 9425fd70c0 Adding a new property to prevent script from being loaded in "modules" mode
Scripts in module mode need to be abide by the Same Origin Policy (CORS headers are used to load them)
This can cause issues on some setups.

This commit adds a new "scriptDisableModuleSupport" that can be used to disable the "modules" mode.

Closes #1721
2022-01-12 17:36:31 +01:00

4 lines
92 B
JavaScript

import { foo } from './module.js';
console.log('Successfully loaded module: foo = ', foo);