mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-09-21 03:42:30 +12:00
Minor style changes
This commit is contained in:
parent
41133dffd2
commit
2d8e32c61b
2 changed files with 4 additions and 4 deletions
2
src/js/codemirror/mode/raw-settings.js
vendored
2
src/js/codemirror/mode/raw-settings.js
vendored
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
CodeMirror.defineMode("raw-settings", function() {
|
CodeMirror.defineMode('raw-settings', function() {
|
||||||
return {
|
return {
|
||||||
token: function(stream) {
|
token: function(stream) {
|
||||||
if ( stream.sol() ) {
|
if ( stream.sol() ) {
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
// https://github.com/hackademix/noscript/commit/6e80d3f130773fc9a9123c5c4c2e97d63e90fa2a
|
// https://github.com/hackademix/noscript/commit/6e80d3f130773fc9a9123c5c4c2e97d63e90fa2a
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
let html = document.documentElement;
|
const html = document.documentElement;
|
||||||
if ( html instanceof HTMLElement === false ) { return; }
|
if ( html instanceof HTMLElement === false ) { return; }
|
||||||
|
|
||||||
let meta;
|
let meta;
|
||||||
|
@ -45,8 +45,8 @@
|
||||||
//
|
//
|
||||||
// The CSP directive is enforced as soon as the meta tag is inserted:
|
// The CSP directive is enforced as soon as the meta tag is inserted:
|
||||||
// > Enforce the policy policy.
|
// > Enforce the policy policy.
|
||||||
let head = document.head,
|
const head = document.head;
|
||||||
parent = head;
|
let parent = head;
|
||||||
if ( parent === null ) {
|
if ( parent === null ) {
|
||||||
parent = document.createElement('head');
|
parent = document.createElement('head');
|
||||||
html.appendChild(parent);
|
html.appendChild(parent);
|
||||||
|
|
Loading…
Reference in a new issue