How to use with Browserify
- Dominant language
- HTML
- Stars
- 71
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
I'm using Browserify to load webclip and build my js bundle. All is working, no errors but the action function is never called when text is selected. Can you provide any advice? Thanks in advance.
Here's my code:
```
"use strict";
var WebClip = require("webclip");
var clip;
module.exports = {
//ui/share.js
initialize: function() {
var transcript = document.querySelector(".transcript");
console.log("share init");
//setup sharing feature
if (transcript) {
var search = {
name: "Search",
description: "Search this site",
icon: "search",
action: function(value) {
location.href = "/search/?q=" + value;
}
};
clip = new WebClip(transcript);
clip.use(search);
}
}
};
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.