Skip to content

Commit

Permalink
Update CDN for ts and tsx files
Browse files Browse the repository at this point in the history
  • Loading branch information
aznhassan committed Dec 19, 2024
1 parent 2758c70 commit 4059504
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/static/gamejam/lib/gamejam.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function makeGameCard(game) {
link.href = game.url || "https://arcade.makecode.com/".concat(game.id);
var textLink = link.cloneNode();
var img = document.createElement("img");
img.src = "https://pxt.azureedge.net/api/".concat(game.id, "/thumb");
img.src = "https://cdn.makecode.com/api/".concat(game.id, "/thumb");
img.onerror = function () {
var div = document.createElement("div");
div.setAttribute("class", "placeholder");
Expand Down
2 changes: 1 addition & 1 deletion docs/static/gamejam/lib/gamejam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function makeGameCard(game: Game) {
link.href = game.url || `https://arcade.makecode.com/${game.id}`;
let textLink = link.cloneNode() as HTMLElement;
let img = document.createElement("img");
img.src = `https://pxt.azureedge.net/api/${game.id}/thumb`;
img.src = `https://cdn.makecode.com/api/${game.id}/thumb`;
img.onerror = () => {
let div = document.createElement("div");
div.setAttribute("class", "placeholder");
Expand Down
2 changes: 1 addition & 1 deletion share/src/components/HeaderBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const HeaderBar: React.FC = () => {
<div className="header-bar">
<img className="header-logo" src="https://trg-arcade.userpxt.io/beta---simulator/static/makecode-white.svg" alt="Microsoft MakeCode Icon"></img>
<div className="spacer" />
<img className="header-logo ms-logo" src="https://pxt.azureedge.net/blob/106597ae039a275897661651b96856220c9b0fad/static/Micorsoft_logo_rgb_W-white_D-square.png" alt="Microsoft Logo"></img>
<img className="header-logo ms-logo" src="https://cdn.makecode.com/blob/106597ae039a275897661651b96856220c9b0fad/static/Micorsoft_logo_rgb_W-white_D-square.png" alt="Microsoft Logo"></img>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion share/src/telemetry/appinsights.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function loadAppInsights(includeCookie: any) {
disableExceptionTracking: true,
isCookieUseDisabled: !includeCookie,
isStorageUseDisabled: !includeCookie,
url: "https://pxt.azureedge.net/blob/dd22520c096be24e7432f5b46e8aad59711f31f0/ai.0.js" // Hardcode docs CDN url for experiment
url: "https://cdn.makecode.com/blob/dd22520c096be24e7432f5b46e8aad59711f31f0/ai.0.js" // Hardcode docs CDN url for experiment
});
(window as any).appInsights = appInsights;

Expand Down

0 comments on commit 4059504

Please sign in to comment.