Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

Commit 5bed2fe

Browse files
author
Kevin Bronstein
committed
Update ico.js rename checkIfIsPNG to isPNG
1 parent c0142fe commit 5bed2fe

File tree

1 file changed

+2
-2
lines changed
  • lib/manifestTools/manifestCreator/scrapers/icojs/src

1 file changed

+2
-2
lines changed

lib/manifestTools/manifestCreator/scrapers/icojs/src/ico.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function createPng(index, buffer) {
6060
* @returns {Boolean} True if the image is PNG.
6161
*/
6262

63-
function checkIfIsPNG(index, buffer) {
63+
function isPNG(index, buffer) {
6464
var icoDv = new DataView(buffer);
6565
var startImage = icoDv.getUint32(18 + (index * 16), true);
6666
var bufferSlice = buf2hex(buffer.slice(startImage, startImage + 4))
@@ -113,7 +113,7 @@ var factory = function(config) {
113113
return Q.all(range(icoDv.getUint16(4, true))
114114
.map(function(i) {
115115

116-
if(checkIfIsPNG(i,buffer)){
116+
if(isPNG(i,buffer)){
117117
var deferred = Q.defer();
118118
deferred.resolve(createPng(i,buffer));
119119
return deferred.promise;

0 commit comments

Comments
 (0)