Skip to content

Commit 2de57a7

Browse files
committed
this then
1 parent 102a8b5 commit 2de57a7

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"html-webpack-plugin": "^5.6.0",
3131
"monaco-editor": "^0.51.0",
3232
"path-browserify": "^1.0.1",
33+
"process": "^0.11.10",
3334
"split-grid": "^1.0.11",
3435
"stream-browserify": "^3.0.0",
3536
"string_decoder": "^1.3.0",

src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ return xstring;
125125
const f = new AsyncFunction("abap", js);
126126
const res = await f(globalThis.abap);
127127
console.dir(res);
128+
/*
129+
var file = document.createElement('a');
130+
file.setAttribute('href', 'data:text/plain;charset=utf-8,world');
131+
file.setAttribute('download', "foo.xlsx");
132+
document.getElementById("container2").innerHTML += file.innerHTML;
133+
*/
128134
}
129135

130136
async function abapChanged() {

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ module.exports = {
3333
"fs": false,
3434
"http": false,
3535
"https": false,
36+
"process": require.resolve("process"),
3637
"zlib": require.resolve("browserify-zlib"),
3738
"tls": false,
3839
"net": false,

0 commit comments

Comments
 (0)