Skip to content

Commit

Permalink
fix callback ver
Browse files Browse the repository at this point in the history
  • Loading branch information
Masashi Hirano committed Aug 29, 2017
1 parent 05f5f5c commit a41b6c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/toggleFullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require('es6-promise').polyfill();
function toggleFullscreen(element, callback) {
if (callback && typeof callback === 'function') {
if (!isFullscreen()) {
fullScreenChange(function() {
fullscreenChange(function() {
if (isFullscreen()) {
callback(true);
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "toggle-fullscreen",
"version": "0.3.0",
"version": "0.3.1",
"description": "Simple to use Fullscreen API with Promise for cross-browser.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit a41b6c3

Please sign in to comment.