We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7081ed commit 121cdb2Copy full SHA for 121cdb2
DiscordEmbed.js
@@ -6,7 +6,7 @@ async function handleRequest(request) {
6
const contentType = response.headers.get("content-type");
7
if (contentType && contentType.startsWith("image/")) {
8
const url = new URL(request.url);
9
- const filename = decodeURIComponent(url.pathname.substr(url.pathname.lastIndexOf("/") + 1));
+ const filename = decodeURIComponent(url.pathname.slice(url.pathname.lastIndexOf("/") + 1));
10
const title = "ShareX";
11
const description = filename;
12
const color = "#00aff4";
0 commit comments