diff --git a/src/snek/static/polyfills/Promise.withResolvers.js b/src/snek/static/polyfills/Promise.withResolvers.js new file mode 100644 index 0000000..03f0185 --- /dev/null +++ b/src/snek/static/polyfills/Promise.withResolvers.js @@ -0,0 +1,8 @@ +Promise.withResolvers = Promise.withResolvers || function() { + let resolve, reject; + let promise = new Promise((res, rej) => { + resolve = res; + reject = rej; + }); + return { promise, resolve, reject }; +} \ No newline at end of file diff --git a/src/snek/templates/app.html b/src/snek/templates/app.html index 31f5d7f..2d96495 100644 --- a/src/snek/templates/app.html +++ b/src/snek/templates/app.html @@ -6,6 +6,7 @@ Snek + diff --git a/src/snek/templates/base.html b/src/snek/templates/base.html index df0796c..d5df6eb 100644 --- a/src/snek/templates/base.html +++ b/src/snek/templates/base.html @@ -12,7 +12,8 @@ {% block title %}Snek chat by Molodetz{% endblock %} - + + @@ -20,7 +21,8 @@ - + {% block head %} {% endblock %}