From 83e01ebb56e0c53d64af55ed6e8c18b3d8f31a68 Mon Sep 17 00:00:00 2001 From: mantaohuang Date: Sun, 22 Nov 2020 13:07:07 -0500 Subject: [PATCH] request all links from shaarli --- .web-extension-id | 3 +++ manifest.json | 2 +- src/lib/client.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .web-extension-id diff --git a/.web-extension-id b/.web-extension-id new file mode 100644 index 0000000..c0fd358 --- /dev/null +++ b/.web-extension-id @@ -0,0 +1,3 @@ +# This file was created by https://github.com/mozilla/web-ext +# Your auto-generated extension ID for addons.mozilla.org is: +{898e31e7-f847-4444-ab44-06c731027963} \ No newline at end of file diff --git a/manifest.json b/manifest.json index 8296929..871a039 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "Web Extension for Shaarli modified", "description": "Share your link to your Shaarli, test version", - "version": "2.0.1", + "version": "2.0.2", "homepage_url": "https://git.hmthsn.com/mantao/shaarli-web-extension", "manifest_version": 2, "icons": { diff --git a/src/lib/client.js b/src/lib/client.js index eadd92a..162df19 100644 --- a/src/lib/client.js +++ b/src/lib/client.js @@ -22,7 +22,7 @@ async function getLinks(api_token){ let token = generateToken(api_token) var result = await $.ajax( { - url: "https://sl.hmthsn.com/api/v1/links", + url: "https://sl.hmthsn.com/api/v1/links?limit=all", //url: "http://127.0.0.1:8081/", type: 'GET', headers:{"Authorization": 'Bearer ' + token}