Skip to content

Commit

Permalink
Merge pull request #12 from riskers/1.0.0
Browse files Browse the repository at this point in the history
1.0.0
  • Loading branch information
riskers authored Jun 1, 2022
2 parents 5e7b465 + 5809dc3 commit 28de8bf
Show file tree
Hide file tree
Showing 5 changed files with 472 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ declare module 'dexie' {
with: (spec: Object) => Promise<Array<T>>;
}
}

declare global {
interface Window {
dataLayer?: any;
}
}
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"manifest_version": 3,
"version": "0.0.4",
"version": "1.0.0-beta",
"name": "GithubX",
"description": "__MSG_description__",
"default_locale": "en",
Expand Down
1 change: 1 addition & 0 deletions src/options/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
</head>
<body>
<div id="app"></div>

</body>
</html>
8 changes: 8 additions & 0 deletions src/options/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import * as ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { HashRouter, Route, Routes } from 'react-router-dom';
import './style.css';
import gtag from '@/utils/gtag';

setUpAxios(R, store);

Expand All @@ -36,3 +37,10 @@ const App: React.FC = () => {
};

ReactDOM.render(<App />, document.getElementById('app'));

window.dataLayer = window.dataLayer || [];
function gtag(a1: any, a2: any) {
(window.dataLayer as any).push([a1, a2]);
}
gtag('js', new Date());
gtag('config', 'G-W8J4DHFYPV');
Loading

0 comments on commit 28de8bf

Please # to comment.