Skip to content

Commit 995e1ae

Browse files
Bump version to 0.0.6
1 parent 1cd90c0 commit 995e1ae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-load-script",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "react-load-script enables you to easily create components which depend on third party JS scripts",
55
"main": "lib/index.js",
66
"author": "Blueberry",

src/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default class Script extends React.Component {
8989
}
9090

9191
script.src = url;
92-
92+
9393
// default async to true if not set with custom attributes
9494
if (!script.hasAttribute('async')) {
9595
script.async = 1;

src/index.test.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,5 @@ test('custom attributes should be set on the script tag', () => {
8989
expect(script.getAttribute('id')).toBe('dummyId');
9090
expect(script.getAttribute('dummy')).toBe('non standard');
9191
expect(script.getAttribute('data-dummy')).toBe('standard');
92-
expect(script.getAttribute('async')).toBe(false);
92+
expect(script.getAttribute('async')).toBe('false');
9393
});

0 commit comments

Comments
 (0)