Skip to content

Commit 87cd81b

Browse files
committed
throw error not supported
1 parent fe19f81 commit 87cd81b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: packages/analytics/lib/modular/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,12 @@ export function initializeAnalytics(app, options) {
6767
/**
6868
* Retrieves a unique Google Analytics identifier for the web client.
6969
*
70-
* @param {AnalyticsInstance} analyticsInstance - Instance of analytics (web - only)
70+
* @param {FirebaseAnalytics} analytics - Instance of analytics (web - only)
7171
* @returns {string}
7272
*/
73-
export function getGoogleAnalyticsClientId(analyticsInstance) {
74-
throw new Error('getGoogleAnalyticsClientId is only supported on Web');
73+
export function getGoogleAnalyticsClientId(analytics) {
74+
throw new Error('getGoogleAnalyticsClientId is web-only and not yet supported.');
75+
return analytics
7576
}
7677
/**
7778
* Log a custom event with optional params.

0 commit comments

Comments
 (0)