Skip to content

Commit

Permalink
misc: minor changes to support opera and firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Walker committed Oct 14, 2016
1 parent 8528c86 commit a186a90
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
View screenshots for games within the Steam search page with this extension. Go to the [Chrome store](coming soon...) to install.
View screenshots for games within the Steam search page with this browser extension.

# Install

[Chrome Web Store](https://chrome.google.com/webstore/developer/edit/nlhhngcbflcbkhnljkcmagnfkeinngnh);
Firefox - Coming soon
Opera - coming soon

![screenshot](/examples/screenshot.png?raw=true)

Expand All @@ -11,7 +17,10 @@ View screenshots for games within the Steam search page with this extension. Go

- Game videos included in preview.

## Install

# Building from source

## Setup

`npm install`

Expand All @@ -27,4 +36,4 @@ Alternatively, use `npm run watch` if you want this build to run any time file c

`npm run package`

Produces a zip file that can be uploaded to the Chrome Web Store.
Produces a zip file that can be uploaded to Chrome, Firefox or Opera.
Binary file added images/icon_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@

"name": "Search Preview for Steam",
"description": "Screenshot gallery previews in Steam search",
"version": "0.1.2",
"version": "0.1.3",
"minimum_chrome_version": "52.0.0",

"icons": {
"64": "images/icon_64.png",
"128": "images/icon_128.png"
},

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "search-preview-for-steam",
"version": "0.0.9",
"description": "Chrome extension for previewing games on Steam store search page",
"description": "Browser extension for previewing games on Steam store search page",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack",
"package": "webpack && zip -r search-preview-for-steam.zip build/",
"watch": "webpack --watch"
"package": "webpack && (cd build && zip -r ../search-preview-for-steam.zip *)",
"watch": "webpack --watch",
"zip-src": "(cd src && zip -r ../src.zip *)"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ export enum PREVIEW_MODE {

export function getMode(): Promise<PREVIEW_MODE> {
return new Promise(resolve => {
chrome.storage.sync.get(['mode'], ({mode}) => resolve(mode));
chrome.storage.local.get(['mode'], ({mode}) => resolve(mode));
});
}


export function setMode(mode: PREVIEW_MODE): Promise<void> {
return new Promise(resolve => {
chrome.storage.sync.set({mode}, () => resolve());
chrome.storage.local.set({mode}, () => resolve());
});
}

0 comments on commit a186a90

Please sign in to comment.