MCPcopy Index your code
hub / github.com/codecombat/codecombat / loadOfflineFonts

Function loadOfflineFonts

app/core/initialize.js:348–355  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

346}
347
348var loadOfflineFonts = function () {
349 $('head').prepend('<link rel="stylesheet" type="text/css" href="/fonts/openSansCondensed.css">')
350 $('head').prepend('<link rel="stylesheet" type="text/css" href="/fonts/openSans.css">')
351 if (utils.isOzaria) {
352 $('head').prepend('<link rel="stylesheet" type="text/css" href="/fonts/workSans.css">')
353 return $('head').prepend('<link rel="stylesheet" type="text/css" href="/fonts/spaceMono.css">')
354 }
355}
356
357// This is so hacky... hopefully it's restrictive enough to not be slow.
358// We could also keep a list of events we are actually subscribed for and only try to send those over.

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected