Skip to content

Commit

Permalink
minor(index, prefetch): renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed Nov 24, 2018
1 parent a7cafa4 commit 2c03bba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
**/

import prefetchLinks from './prefetch.mjs';
import prefetchURLs from './prefetch.mjs';
import requestIdleCallback from './request-idle-callback.mjs';

/**
Expand Down
4 changes: 2 additions & 2 deletions src/prefetch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ const prefetch = function (url, priority) {
* @param {Array} urls - Array of URLs to prefetch
* @param {string} priority - "priority" of the request
*/
const prefetchLinks = function (urls, priority) {
const prefetchURLs = function (urls, priority) {
urls.forEach(url => {
prefetch(url, priority);
});
};

export default prefetchLinks;
export default prefetchURLs;

0 comments on commit 2c03bba

Please sign in to comment.