Closed kumar303 closed 4 years ago
https://addons-dev.allizom.org/api/v5/reviewers/addon/494431/versions/1532144/?file=messageResponder.js&lang=en-US
There is no syntax highlighting because the mimetype of this file entry is text/x-c
mimetype
text/x-c
There should be syntax highlighting since this is a JavaScript file.
This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on the issue with further details. Thank you for your contributions.
Describe the problem and steps to reproduce it:
https://addons-dev.allizom.org/api/v5/reviewers/addon/494431/versions/1532144/?file=messageResponder.js&lang=en-US
What happened?
There is no syntax highlighting because the
mimetype
of this file entry istext/x-c
What did you expect to happen?
There should be syntax highlighting since this is a JavaScript file.
Anything else we should know?
Example response
``` { "id": 1532144, "channel": "listed", "compatibility": { "firefox": { "min": "48.0", "max": "*" }, "android": { "min": "48.0", "max": "*" } }, "edit_url": "https://addons-dev.allizom.org/en-US/developers/addon/androidadbplus23/versions/1532144", "is_strict_compatibility_enabled": false, "license": { "id": 3338, "is_custom": false, "name": null, "text": { "en-US": "This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/." }, "url": "http://www.mozilla.org/MPL/2.0/" }, "release_notes": null, "reviewed": "2019-07-04T08:10:11Z", "version": "1.13.2", "file": { "id": 252861, "created": "2017-05-10T12:48:35Z", "hash": "sha256:55c9887fab92c52c94291158f18b66179bab8705ca6a454f317e41e51e290ccd", "is_restart_required": false, "is_webextension": true, "is_mozilla_signed_extension": false, "platform": "all", "size": 559267, "status": "public", "url": "https://addons-dev.allizom.org/firefox/downloads/file/252861/androidadbplus-1.13.2-an+fx.xpi?src=", "permissions": [ "tabs", "http://*/*", "https://*/*", "contextMenus", "webRequest", "webRequestBlocking", "webNavigation", "storage", "unlimitedStorage", "notifications" ], "content": "/*\n * This file is part of Adblock Plus