driftbot | A simple web app software supply chain monitoring toolkit | Runtime Evironment library
kandi X-RAY | driftbot Summary
kandi X-RAY | driftbot Summary
A simple web app software supply chain monitoring toolkit.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of driftbot
driftbot Key Features
driftbot Examples and Code Snippets
Community Discussions
Trending Discussions on driftbot
QUESTION
I am using Driftbot, See Here and am trying to get it to enable/disable based on the current route/url. I AM USING REACT-ROUTER.
I am able to use drift.unload()
to stop it from running (in my componentWillMount()
function) but am unable to get it started back up again.
We have some code that was pulled from here on SO that has been working, except we now need to modify it such that it is disabled on specific pages.
Here is the code we are currently using:
...ANSWER
Answered 2018-Feb-14 at 17:40So this was a very confusing ride but I finally figured it out with the help of some of the engineers over at drift.
First of all, in the settings of their dash when you "blacklist" urls you need to only include keywords not full URLs (my first mistake).
Secondly, put the fucntion in a script in the index.html
file
Thirdly, find all of the top-level route components where you want the widget to be disabled and include the following code like in their react article
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install driftbot
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page