‹ Back to homepage

Marquis Kurt

Python, Swift, indie game, and Web developer

A fancy avatar of me, Marquis Kurt.

Love.js Consumption Error

One or more scripts ran too heavily and caused a consumption error.

enum LoveJSError: Error {
    case invalidClient
    case usingContentBlocker
    case blockInvade

func diagnoseError(err: LoveJSError) {
    switch err {
    case .invalidClient:
        return "The browser is an invalid client and cannot operate with love.js."
        return "Either a content blocker is enabled or love.js has been tampered with. Full details: \(err)"

diagnoseError(err: window.incomingLoveJavaScriptError)