Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

Commit

Permalink
Fixed jQuery conflict by using 1.5 with noConflict().
Browse files Browse the repository at this point in the history
  • Loading branch information
rlr committed Feb 20, 2011
1 parent 40fb582 commit 9ab016f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ pageMod.PageMod({
contentScriptWhen: 'ready',
contentScriptFile: data.url('jquery-1.5.min.js'),
contentScript:
'onMessage = function onMessage(script) { eval(script); };' +
'postMessage(document.URL); console.log(jQuery.fn.jquery);',
'(function($) {' +
'onMessage = function onMessage(script) { eval(script); };' +
'postMessage(document.URL);' +
'}(jQuery.noConflict()));',
onAttach: function onAttach(worker) {
worker.on('message', function(data) {
var domain = url.URL(data).host;
Expand Down

0 comments on commit 9ab016f

Please sign in to comment.