Skip to content

Commit 9a286d9

Browse files
committed
去掉 drift 集成
1 parent bb0157d commit 9a286d9

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

public/index.html

-24
Original file line numberDiff line numberDiff line change
@@ -38,30 +38,6 @@
3838
<script>window.__PUBLIC_URL__ = "%PUBLIC_URL%";</script>
3939
<!--Skin Script: Place this script in head to load scripts for skins and rtl support-->
4040
<script src="%PUBLIC_URL%/assets/js/skins.min.js"></script>
41-
<!-- Start of Async Drift Code -->
42-
<script>
43-
!function() {
44-
var t;
45-
if (t = window.driftt = window.drift = window.driftt || [], !t.init) return t.invoked ? void (window.console && console.error && console.error("Drift snippet included twice.")) : (t.invoked = !0,
46-
t.methods = [ "identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on" ],
47-
t.factory = function(e) {
48-
return function() {
49-
var n;
50-
return n = Array.prototype.slice.call(arguments), n.unshift(e), t.push(n), t;
51-
};
52-
}, t.methods.forEach(function(e) {
53-
t[e] = t.factory(e);
54-
}), t.load = function(t) {
55-
var e, n, o, i;
56-
e = 3e5, i = Math.ceil(new Date() / e) * e, o = document.createElement("script"),
57-
o.type = "text/javascript", o.async = !0, o.crossorigin = "anonymous", o.src = "https://js.driftt.com/include/" + i + "/" + t + ".js",
58-
n = document.getElementsByTagName("script")[0], n.parentNode.insertBefore(o, n);
59-
});
60-
}();
61-
drift.SNIPPET_VERSION = '0.3.1';
62-
drift.load('4h2d2dv365x8');
63-
</script>
64-
<!-- End of Async Drift Code -->
6541
</head>
6642
<!-- /Head -->
6743
<!-- Body -->

src/index.js

-4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ import Root from './App';
99
import registerServiceWorker from './registerServiceWorker';
1010
import 'moment/locale/zh-cn'; // eslint-disable-line
1111

12-
/* global drift */
1312
moment.locale('zh-cn');
1413
LogRocketReact(LogRocket);
1514
LogRocket.init('b62az1/react-demo');
16-
LogRocket.getSessionURL(sessionURL => {
17-
drift.track('LogRocket', { sessionURL });
18-
});
1915

2016
const render = Component => {
2117
ReactDOM.render(

0 commit comments

Comments
 (0)