Skip to content

Commit 2d2f7f3

Browse files
committed
Merge branch 'npm'
2 parents 4a22be2 + 0a6e348 commit 2d2f7f3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Option pages should be easy to make given a structure of your options, and look like Chrome's options.
1+
Option pages should be simple to create given a structure of your options, ~and look like Chrome's options~.
22

33
![example](images/example.png)
44

@@ -19,8 +19,8 @@ Recommended that you create an options folder in your extension, keep things org
1919

2020
Download chrome-options
2121

22-
bower install chrome-options
23-
ln bower_components/chrome-options/options.html .
22+
npm install chrome-options
23+
ln node_modules/chrome-options/options.html .
2424
touch custom.css
2525
touch options.js
2626

@@ -40,10 +40,10 @@ Needs `storage` permission. Options are saved to [`chrome.storage.sync`](https:/
4040
If you'll be using the [predefined_sound](#predefined_sound) fields, and want to play sounds from a content script, also add
4141

4242
"web_accessible_resources": [
43-
"options/bower_components/chrome-options/sounds/*.wav"
43+
"options/node_modules/chrome-options/sounds/*.wav"
4444
]
4545

46-
If you're using git, consider adding `options/bower_components` to your `.gitignore`.
46+
If you're using git, consider adding `options/node_modules` to your `.gitignore`.
4747

4848
Afterwards, you can start setting up your options page by editing `options.js`, and additionally, `custom.css` if you need to set any styles.
4949

options.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="utf-8" />
55
<title>chrome options</title>
66
<link rel="stylesheet" type="text/css" href="custom.css" />
7-
<script src="bower_components/chrome-options/dist/styles.min.js"></script>
8-
<script src="bower_components/chrome-options/dist/main.min.js" defer></script>
7+
<script src="node_modules/chrome-options/dist/styles.min.js"></script>
8+
<script src="node_modules/chrome-options/dist/main.min.js" defer></script>
99
<script src="options.js" defer></script>
1010
</head>
1111
<body class="chrome-bootstrap">

src/js/predefined-sound.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ chrome.options.fields.predefined_sound = (value, save, option) => {
1010
}
1111
$play.classList.remove('disabled');
1212
const audio = new Audio();
13-
audio.src = 'bower_components/chrome-options/sounds/' + value + '.wav';
13+
audio.src = 'node_modules/chrome-options/sounds/' + value + '.wav';
1414
audio.onerror = console.error;
1515
audio.play();
1616
};

0 commit comments

Comments
 (0)