Skip to content

Download file contains only undefined #1

Closed

Description

@regseb

Hi,

When I download the bundle of content-scripts-register-polyfill, the file contains only undefined.

The textarea in the page seems to have the complete file:

(function () {
	'use strict';

	// [...]

	if (typeof chrome === 'object' && !chrome.contentScripts) {
	    chrome.contentScripts = { register: registerContentScript };
	}

}());

Activity

  1. fregante commented on Sep 29, 2021

    @fregante
    Owner

    Thanks for the report! What browser are you using?

  2. regseb commented on Sep 29, 2021

    @regseb
    ContributorAuthor

    I have the problem with Firefox 92 and Chrome 94.

    I think the problem is in this line: const blob = new Blob([output.bundle], {
    The variable output is a string and doesn't have property bundle. Maybe, you should write : const blob = new Blob([output], {

  3. fregante commented on Sep 29, 2021

    @fregante
    Owner

    Ahhh it's been broken for 7 months 😅

    5364b83

    Could send a PR? If not, I might fix it later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions