Skip to content

Commit

Permalink
🐛 fix: resolve CORS policy error by hosting image on same domain
Browse files Browse the repository at this point in the history
Fixes #59
  • Loading branch information
chriskyfung committed Mar 21, 2024
1 parent ab24f7a commit 5928d78
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _includes/css/amp-ad-styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
amp-ad {
background-image: url('https://icon-library.com/images/b8d82a619c.png');
background-image: url('https://chriskyfung.github.io/amp-affiliately-jekyll-theme/assets/images/b8d82a619c.png');
background-position: 50%;
background-repeat: no-repeat;
background-size: 50px
Expand Down
2 changes: 1 addition & 1 deletion _includes/css/amp-ad-styles.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<link rel="preload" href="https://use.fontawesome.com/releases/v5.13.1/webfonts/fa-solid-900.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.13.1/css/all.css" crossorigin>
{%- if site.adsense.client_id and site.adstyle != false -%}
<link rel="preload" href="https://icon-library.com/images/b8d82a619c.png" as="image" crossorigin>
<link rel="preload" href="https://chriskyfung.github.io/amp-affiliately-jekyll-theme/assets/images/b8d82a619c.png" as="image" crossorigin>
{%- endif -%}
{%- if page.image.path -%}
{%- assign img_ext = page.image.path | split: "." | last -%}
Expand Down
2 changes: 1 addition & 1 deletion _posts/2021-04-02-ads-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ It is styled with the following CSS code:

```css
amp-ad {
background-image: url('https://icon-library.com/images/b8d82a619c.png');
background-image: url('https://chriskyfung.github.io/amp-affiliately-jekyll-theme/assets/images/b8d82a619c.png');
background-position: 50%;
background-repeat: no-repeat;
background-size: 50px
Expand Down
2 changes: 1 addition & 1 deletion _sass/amp-ad-styles.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
amp-ad {
background-image: url("https://icon-library.com/images/b8d82a619c.png");
background-image: url("https://chriskyfung.github.io/amp-affiliately-jekyll-theme/assets/images/b8d82a619c.png");
background-position: 50%;
background-repeat: no-repeat;
background-size: 50px;
Expand Down
Binary file added assets/images/b8d82a619c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/b8d82a619c.webp
Binary file not shown.

0 comments on commit 5928d78

Please sign in to comment.