devstar插件
This commit is contained in:
17
node_modules/search-insights/lib/_algoliaAgent.ts
generated
vendored
Normal file
17
node_modules/search-insights/lib/_algoliaAgent.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import { version } from "../package.json";
|
||||
|
||||
import type AlgoliaAnalytics from "./insights";
|
||||
|
||||
export const DEFAULT_ALGOLIA_AGENTS = [
|
||||
`insights-js (${version})`,
|
||||
`insights-js-${__FLAVOR__} (${version})`
|
||||
];
|
||||
|
||||
export function addAlgoliaAgent(
|
||||
this: AlgoliaAnalytics,
|
||||
algoliaAgent: string
|
||||
): void {
|
||||
if (this._ua.indexOf(algoliaAgent) === -1) {
|
||||
this._ua.push(algoliaAgent);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user