mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
Merge pull request #6 from lgorence/better_errors
Improve error handling
This commit is contained in:
@@ -111,7 +111,7 @@ async function sendMessageToActiveTab(message) {
|
|||||||
return await browser.tabs.sendMessage(activeTab.id, message);
|
return await browser.tabs.sendMessage(activeTab.id, message);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
console.error("Sending message to active tab failed, you might need to refresh the page after updating the extension.", e);
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
VERSION=$(jq -r ".version" manifest.json)
|
VERSION=$(jq -r ".version" manifest.json)
|
||||||
CHROME_EXTENSION_ID=dfhgmnfclbebfobmblelddiejjcijbjm
|
CHROME_EXTENSION_ID=dfhgmnfclbebfobmblelddiejjcijbjm
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
WEB_EXT_ID="{1410742d-b377-40e7-a9db-63dc9c6ec99c}"
|
WEB_EXT_ID="{1410742d-b377-40e7-a9db-63dc9c6ec99c}"
|
||||||
|
|
||||||
@@ -17,4 +18,4 @@ jq '.name = "Trilium Web Clipper"' manifest.json | sponge manifest.json
|
|||||||
web-ext sign --id ${WEB_EXT_ID} --artifacts-dir ../
|
web-ext sign --id ${WEB_EXT_ID} --artifacts-dir ../
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
rm -r "${ARTIFACT_NAME}"
|
rm -r "${ARTIFACT_NAME}"
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
export GITHUB_REPO=trilium-web-clipper
|
export GITHUB_REPO=trilium-web-clipper
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user