Skip to content

Commit 39a41d2

Browse files
resistdesigngajus
authored andcommitted
fix: (fixes issue #15) (#27)
* fix(loadYouTubeIframeApi) Add explicit protocol. Fix #15 * fix(loadYouTubeIframeApi) Fix a logic error with protocol.
1 parent 37d7f20 commit 39a41d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/loadYouTubeIframeApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default () => {
2121
resolve(window.YT);
2222
};
2323
});
24-
const protocol = window.location.protocol === 'https:' ? 'https:' : 'http:';
24+
const protocol = window.location.protocol === 'http:' ? 'http:' : 'https:';
2525

2626
load(protocol + '//www.youtube.com/iframe_api');
2727

0 commit comments

Comments
 (0)