Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Uncaught TypeError: Cannot call method 'replace' of undefined Sanitiser.js:11 #12

@MikeTommasi

Description

@MikeTommasi

I have created a simple chrome app, testing in Chrome Canary, where I try to inject two images into a div, exactly as suggested in the readme. The div is

I get the error in the title; this happens at the end of the script after the RAL.Queue.start(); it looks like the cleanURL function is being called with empty url. I checked and the loop is going through the two URLs ok, and the div gets two empty tags appended to it.

My images are valid and declared as in readme
toLoad = { 'images': [
'http://criteeq.net/images/blue-dot.png',
'http://criteeq.net/images/red-dot.png'
] }; // list of image URLs

and I have set permission in the manifest
"permissions": [ "<all_urls>" ],
(NOTE : in the readme the permission is per below, which throws an error (single quotes)
permissions: [ '<all_urls>' ]

also tried
"permissions": [ "http://criteeq.net/*" ],

In Chrome Canary in chrome://extensions if I check Permissions on my app, I get "(appname) has no special permissions", no matter what urls I put in permissions, this seems to be a bug in Chrome (sorry for the tangent).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions