Skip to content

Commit

Permalink
Note globals and remove unused vars from webfont config
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanPak committed Feb 4, 2025
1 parent 02d97b5 commit 1f77ee0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/larva-js/src/utils/webfontConfig.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* global pmc, pmc_common_urls, WebFont */

// TODO:
// post launch task from GUT-67 is to pull the
// IW related values into configuration
Expand All @@ -15,10 +17,6 @@ const webFontConfig = {
},

load: function load( type ) {
const currentThemeUrl = this.getThemeUrl();

const loadcount = this.loadcount++;

WebFont.load( {
google: {
families: [ 'PT Sans:400,700', 'Teko:300,400' ],
Expand All @@ -29,13 +27,15 @@ const webFontConfig = {

active: function webfontsLoaderActive() {
try {
if ( 'load' == type ) {
if ( 'load' === type ) {
pmc.cookie.set(
'iw_fonts_loaded',
1,
7 * 24 * 60 * 60
);
}

// eslint-disable-next-line no-console
console.log( 'fonts loaded ' + type );
} catch ( e ) {}
},
Expand Down

0 comments on commit 1f77ee0

Please sign in to comment.