Skip to content

Clock moon illuminatedFractionString #2172

Description

when page refresh and Math.round(moonIllumination.fraction * 100) = 0.526781678199768 or something between 0 and 1

clock.js:208 Uncaught (in promise) ReferenceError: illuminatzedFractionString is not defined
    at Class.getDom (clock.js:208)
    at main.js:118
    at new Promise (<anonymous>)
    at updateDom (main.js:117)
    at Object.updateDom (main.js:558)
    at Class.updateDom (module.js:366)
    at notificationTimer (clock.js:49)

illuminatedFractionString = Math.floor(moonIllumination.fraction * 100) resolve this issue

see fix floating point bug in moon illumination calc #1939

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions