mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) remove metrics
Summary: This removes some old metric code. There's also a user preference dialog that has a single option (whether to allow metrics) this is left in place with a dummy option. It could be ripped out as well, probably. Test Plan: existing tests pass Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2622
This commit is contained in:
@@ -61,13 +61,6 @@ export function getInitialDocAssignment(): string|null {
|
||||
return getGristConfig().assignmentId || null;
|
||||
}
|
||||
|
||||
// Return true if we are on a page that can send metrics.
|
||||
// TODO: all pages should send suitable metrics.
|
||||
export function pageHasMetrics(): boolean {
|
||||
// No metric support on hosted grist.
|
||||
return !getGristConfig().homeUrl;
|
||||
}
|
||||
|
||||
// Return true if we are on a page that can supply a doc list.
|
||||
// TODO: the doclist object isn't relevant to hosted grist and should be factored out.
|
||||
export function pageHasDocList(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user