Google chrome extension does not show default popup

0

I started yesterday to develop extensions for google chrome, and I followed google as follows:

I declare my manifest and added the page with the popup:

{
    "name": "ODM Integration",
    "description": "Open Download Manager integration for google chrome",
    "version": "1.0",
    "manifest_version": 2,
    "default_locale": "en_US",
    "author": "Samuel Ives",

    "browser_action":{
        "default_popup": "popup.html"
    },

    "permissions":[
        "pageCapture"
    ]
}

html page:

<!DOCTYPE html>

<html>
    <head>
        <title>ODM Integration<title>
        <meta charset = "UTF-8" />
    </head>
    <body>
        <h1>Files</h1>
    </body>
</html>

but what it returns when I click on the extension is a square of a 12 x 12 blank pixel.

    
asked by anonymous 26.12.2017 / 13:54

1 answer

2

First problem, to use

 "default_locale": "en_US"

It is necessary that there is the folder _locales , the second problem is that you did not close the title tag:

 <title>ODM Integration<title>

HTML is being generated like this:

Inotherwords,everythingisconsideredtext,thecorrectonewouldbe:

<title>ODMIntegration</title>

EntireHTML:

<!DOCTYPEhtml><html><head><title>ODMIntegration</title><metacharset="UTF-8" />
    </head>
    <body>
        <h1>Files</h1>
    </body>
</html>
    
26.12.2017 / 14:04