Bug fixes
This commit is contained in:
10
public/js-source/index.ts
Normal file
10
public/js-source/index.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
// Export setConfig so that the external url can set set automatically by the server
|
||||
export {setConfig} from './utils/utils';
|
||||
|
||||
import {getUserName} from './SomeModule';
|
||||
|
||||
getUserName().then((name) => {
|
||||
const node = document.createElement('span');
|
||||
node.innerText = `This user name is fetched with Javascript: ${name}`;
|
||||
document.getElementsByTagName("body")[0].appendChild(node);
|
||||
});
|
||||
Reference in New Issue
Block a user