Bug 1708625 - [devtools] Remove Promise.jsm usage in breadcrumb.js. r=jdescottes

Differential Revision: https://phabricator.services.mozilla.com/D113911
This commit is contained in:
Nicolas Chevobbe 2021-04-30 11:36:02 +00:00
Родитель fe31a10105
Коммит 2c1ee5e54c
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -4,7 +4,6 @@
"use strict";
const promise = require("promise");
const flags = require("devtools/shared/flags");
const { ELLIPSIS } = require("devtools/shared/l10n");
const EventEmitter = require("devtools/shared/event-emitter");
@ -613,7 +612,7 @@ HTMLBreadcrumbs.prototype = {
event.preventDefault();
event.stopPropagation();
this.keyPromise = (this.keyPromise || promise.resolve(null)).then(() => {
this.keyPromise = (this.keyPromise || Promise.resolve(null)).then(() => {
let currentnode;
const isLeft = event.code === "ArrowLeft";