Skip to content

Commit 78458a8

Browse files
committed
Final Updates Before launch
1 parent 264c060 commit 78458a8

File tree

9 files changed

+11
-7
lines changed

9 files changed

+11
-7
lines changed

_locales/en/messages.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@
368368
"description": "Options sub-title: 'Auto-save'"
369369
},
370370
"optionsLiveSiteTitle": {
371-
"message": "Live-site",
372-
"description": "Options sub-title: 'Live-site'"
371+
"message": "Historia Network API Key",
372+
"description": "Options sub-title: 'Historia Network API Key'"
373373
},
374374
"optionsAutoSettingsSubTitle": {
375375
"message": "Auto-settings rules",

lib/single-file-extension.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/content/content.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async function savePage(message) {
9494
const pageData = await processPage(options);
9595
if (pageData) {
9696
await download.downloadPage(pageData, options);
97-
pageData['access_token'] = options.liveSiteAccessToken; //'LF9DRTNYQyVVfUheOUdMSVV9MDRRNiYrVDZFVFgvVDBOK09UTyktNElHTTFTMSQ8KC59KnxQUVlEUV9dUypPVg==';
97+
pageData['access_token'] = options.liveSiteAccessToken;
9898
console.log('pageData', pageData, pageData['access_token']);
9999
await window.fetch(url, {
100100
method: 'post', // or 'PUT'
@@ -105,7 +105,11 @@ async function savePage(message) {
105105
})
106106
.catch((error) => {
107107
console.error('Error:', error);
108-
alert("Can't connect to Historia Local, Are you sure it's running?")
108+
if(!liveSite) {
109+
alert("Can't connect to Historia Local Web Application, Are you sure it's running?")
110+
} else {
111+
alert("Can't submit to https://historia.network; Did you setup your API Key in both the web application and extension?")
112+
}
109113
});
110114
}
111115
} catch (error) {

src/ui/pages/options.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ <h3>
461461
</div>
462462
</details>
463463
<details>
464-
<summary id="liveSiteLabel">Live-Site</summary>
464+
<summary id="liveSiteLabel">Historia Network API Key</summary>
465465
<div class="option">
466-
<label for="liveSiteAccessTokenInput" id="liveSiteAccessTokenLabel">Access Token</label>
466+
<label for="liveSiteAccessTokenInput" id="liveSiteAccessTokenLabel">API Key</label>
467467
<input type="text" id="liveSiteAccessTokenInput">
468468
</div>
469469
</details>

src/ui/resources/icon_128.png

779 Bytes
Loading

src/ui/resources/icon_128x.png

876 Bytes
Loading

src/ui/resources/icon_16.png

160 Bytes
Loading

src/ui/resources/icon_48.png

60 Bytes
Loading

src/ui/resources/icon_64.png

145 Bytes
Loading

0 commit comments

Comments
 (0)