We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a582a53 commit 8222829Copy full SHA for 8222829
1 file changed
src/main.js
@@ -265,24 +265,12 @@ function addToolbarButton(toolbar) {
265
resetGiphyModals();
266
}
267
268
-/**
269
- * Defines the event listeners
270
- */
271
-function listen() {
272
- delegate('.ghg-gif-selection', 'click', selectGif);
273
-}
274
-
275
-// Ensure we only bind events to elements once
276
-const listenOnce = onetime(listen);
277
278
/**
279
* Initialize the extension by adding buttons to existing toolbars
280
* and watching for new ones.
281
*/
282
function init() {
283
debugLog('Initializing GIFs for GitHub...');
284
- // Ensure we only bind events to elements once
285
- listenOnce();
286
287
// Add buttons to existing toolbars
288
// Use a selector that matches both new and old GitHub styles
0 commit comments