mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
Have editor options survive across followed links
This commit is contained in:
parent
4dfa2b4d44
commit
c78c7308a8
28 changed files with 74 additions and 60 deletions
|
|
@ -136,6 +136,14 @@
|
|||
div.innerHTML = '<ul><li>' + allComponents.map(function(component) { return component.renderLoadingOptions(); }).join('</li><li>') + '</li></ul>';
|
||||
|
||||
document.body.appendChild(div);
|
||||
|
||||
var aElements = document.getElementsByTagName('a');
|
||||
for (var i = 0; i < aElements.length; i++) {
|
||||
var aElement = aElements[i];
|
||||
if (aElement.className === 'loading-opts') {
|
||||
aElement.href += window.location.search
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue