hardlounge/client/js/socket-events/uploads.js

11 lines
273 B
JavaScript
Raw Normal View History

"use strict";
const socket = require("../socket");
const wrapCursor = require("undate").wrapCursor;
socket.on("upload:success", (url) => {
const fullURL = new URL(url, location);
const textbox = document.getElementById("input");
wrapCursor(textbox, fullURL, " ");
});