Skip to content
Advertisement

Tag: requirejs

$(this) undefined via requirejs on bower and node

I am trying to develop an app with a modular approach using requirejs and include only as little jQuery code as possible as necessary. I have a basic SPA app o.html: app.js: main-built.js:483 Uncaught TypeError: Failed to set an indexed property on ‘Window’: Indexed property setter is not supported. Replacing code within console.log with $(‘body’) works, but $(this) or $(document)

Why doesn’t chrome.tabs.query() return the tab’s URL when called using RequireJS in a Chrome extension?

I have a simple Chrome extension that adds a browser action. When the extension’s popup is opened, it needs to access the current tab’s URL. Since it doesn’t need access to all the tabs, I just have the activeTab permission specified in the manifest: In theory, that should give the popup access to the active tab’s URL, but the URL

Advertisement