Updating the link to firmware at the right location (#1292)
This commit is contained in:
parent
25786d51ad
commit
72c234188e
@ -862,6 +862,7 @@ namespace pxt.editor {
|
|||||||
|
|
||||||
function webUsbPairDialogAsync(confirmAsync: (options: any) => Promise<number>): Promise<number> {
|
function webUsbPairDialogAsync(confirmAsync: (options: any) => Promise<number>): Promise<number> {
|
||||||
const boardName = pxt.appTarget.appTheme.boardName || "???";
|
const boardName = pxt.appTarget.appTheme.boardName || "???";
|
||||||
|
const docUrl = pxt.appTarget.appTheme.usbDocs;
|
||||||
const htmlBody = `
|
const htmlBody = `
|
||||||
<div class="ui grid stackable">
|
<div class="ui grid stackable">
|
||||||
<div class="column five wide" style="background-color: #FFFFCE;">
|
<div class="column five wide" style="background-color: #FFFFCE;">
|
||||||
@ -870,7 +871,7 @@ namespace pxt.editor {
|
|||||||
<div style="justify-content: center;display: flex;padding: 1rem;">
|
<div style="justify-content: center;display: flex;padding: 1rem;">
|
||||||
<img class="ui image" src="./static/download/firmware.png" style="height:100px;" />
|
<img class="ui image" src="./static/download/firmware.png" style="height:100px;" />
|
||||||
</div>
|
</div>
|
||||||
<a href="/webusbfirmware" target="_blank">${lf("Check your firmware version here and update if needed")}</a>
|
<a href="${docUrl}/webusbfirmware" target="_blank">${lf("Check your firmware version here and update if needed")}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="column eleven wide">
|
<div class="column eleven wide">
|
||||||
<div class="ui grid">
|
<div class="ui grid">
|
||||||
@ -915,7 +916,6 @@ namespace pxt.editor {
|
|||||||
</div>`;
|
</div>`;
|
||||||
|
|
||||||
const buttons: any[] = [];
|
const buttons: any[] = [];
|
||||||
const docUrl = pxt.appTarget.appTheme.usbDocs;
|
|
||||||
if (docUrl) {
|
if (docUrl) {
|
||||||
buttons.push({
|
buttons.push({
|
||||||
label: lf("Help"),
|
label: lf("Help"),
|
||||||
|
Loading…
Reference in New Issue
Block a user