Skip to content

Commit

Permalink
Rename assets to media
Browse files Browse the repository at this point in the history
  • Loading branch information
nathangathright committed Oct 17, 2020
1 parent cefa942 commit dfeac0b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
assets
media
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function download(filename, url, callback) {
});

const results = hits.map(hit => {
const iconPath = `${__dirname}/assets/${hit.id}`;
const iconPath = `${__dirname}/media/${hit.id}`;

const result = {
uid: hit.id,
Expand All @@ -51,7 +51,7 @@ function download(filename, url, callback) {
});

hits.forEach(hit => {
const iconPath = `${__dirname}/assets/${hit.id}`;
const iconPath = `${__dirname}/media/${hit.id}`;
const iconUrl = `https://ph-files.imgix.net/${hit.thumbnail.image_uuid}?auto=format&fit=crop&h=128&w=128`;

fs.exists(iconPath, exists => {
Expand Down
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>1.0.1</string>
<string>1.0.2</string>
<key>webaddress</key>
<string>https://github.com/nathangathright/alfred-producthunt-search</string>
</dict>
Expand Down

0 comments on commit dfeac0b

Please sign in to comment.