mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-26 07:38:36 -06:00
Removed docker badge from README
This commit is contained in:
parent
8956519a10
commit
9f68f2632f
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,3 @@
|
|||
[![Docker Pulls](https://img.shields.io/docker/pulls/sintan1729/simply-shorten?style=for-the-badge)](https://hub.docker.com/r/sintan1729/simply-shorten)
|
||||
|
||||
# ![Logo](src/main/resources/public/assets/favicon-32.png) <span style="font-size:42px">Simply Shorten</span>
|
||||
|
||||
# What is it?
|
||||
|
|
|
@ -26,7 +26,9 @@ const refreshData = async () => {
|
|||
|
||||
const displayData = async (data) => {
|
||||
let site = await getSiteUrl();
|
||||
site = site.replace(/(^\w+:|^)\/\//, '');
|
||||
if (window.isSecureContext) {
|
||||
site = site.replace(/(^\w+:|^)\/\//, '');
|
||||
}
|
||||
table_box = document.querySelector(".pure-table");
|
||||
if (data.length == 0) {
|
||||
table_box.style.visibility = "hidden";
|
||||
|
@ -97,7 +99,7 @@ const addProtocol = (input) => {
|
|||
|
||||
const A_LONG = (s) => `<a href='${s}'>${s}</a>`;
|
||||
const A_SHORT = (s, t) => `<a href="javascript:copyShortUrl('${s}');">${t}/${s}</a>`;
|
||||
const A_SHORT_INSECURE = (s, t) => `<a href="/${s}">${t}/${s}</a>`;
|
||||
const A_SHORT_INSECURE = (s, t) => `<a href="${t}/${s}">${t}/${s}</a>`;
|
||||
|
||||
const deleteButton = (shortUrl) => {
|
||||
const td = document.createElement("td");
|
||||
|
|
Loading…
Reference in a new issue