stylus/edit/usw-debug.js
Gusted 4a7c2445c8
Prototype
Just able to log the token for the requested style.
2021-06-03 14:44:53 +02:00

17 lines
294 B
JavaScript

/* global editor */
'use strict';
let uswPort;
/* exported linkToUSW */
function linkToUSW() {
if (!uswPort) {
uswPort = chrome.runtime.connect({name: 'link-style-usw'});
uswPort.onDisconnect.addListener(err => {
throw err;
});
}
uswPort.postMessage(editor.style);
}