ce212e001c
Co-Authored-By: Max Leiter <hello@maxleiter.com> Co-Authored-By: Jérémie Astori <astorije@users.noreply.github.com>
11 lines
273 B
JavaScript
11 lines
273 B
JavaScript
"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, " ");
|
|
});
|