mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-28 18:15:37 -05:00
Code format & sort npm script params
This commit is contained in:
parent
d60ea5e7cb
commit
29ebbeece6
5 changed files with 7 additions and 7 deletions
|
@ -4,9 +4,9 @@
|
|||
"description": "ScratchJr",
|
||||
"scripts": {
|
||||
"lint": "eslint src/**",
|
||||
"watch": "webpack --watch --progress --mode=development --hide-modules",
|
||||
"dev": "webpack --mode=development --hide-modules",
|
||||
"build": "webpack --mode=production --hide-modules"
|
||||
"watch": "webpack --mode=development --progress --hide-modules --watch",
|
||||
"dev": "webpack --mode=development --progress --hide-modules",
|
||||
"build": "webpack --mode=production --progress --hide-modules"
|
||||
},
|
||||
"author": "Massachusetts Institute of Technology",
|
||||
"license": "BSD-3-Clause",
|
||||
|
|
|
@ -379,7 +379,7 @@ export default class ScratchJr {
|
|||
}
|
||||
}
|
||||
|
||||
static saveAndFlip (e){
|
||||
static saveAndFlip (e) {
|
||||
onHold = true;
|
||||
ScratchJr.stopStripsFromTop(e);
|
||||
ScratchJr.unfocus(e);
|
||||
|
|
|
@ -471,7 +471,7 @@ export default class Scripts {
|
|||
getEncodableBlocks () {
|
||||
var list = [];
|
||||
var sc = this.sc;
|
||||
for (var i =0; i < sc.childElementCount; i++){
|
||||
for (var i = 0; i < sc.childElementCount; i++) {
|
||||
var b = sc.childNodes[i].owner;
|
||||
if (!b || b.type != 'block') {
|
||||
continue;
|
||||
|
|
|
@ -20,7 +20,7 @@ export function gettingStartedMain () {
|
|||
|
||||
var urlvars = getUrlVars();
|
||||
place = urlvars['place'];
|
||||
document.ontouchmove = function (e){
|
||||
document.ontouchmove = function (e) {
|
||||
e.preventDefault();
|
||||
};
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ export function preprocessAndLoadCss (baseUrl, url) {
|
|||
const head = document.head;
|
||||
let style = document.createElement('style');
|
||||
style.type = 'text/css';
|
||||
if (style.styleSheet){
|
||||
if (style.styleSheet) {
|
||||
style.styleSheet.cssText = cssData;
|
||||
} else {
|
||||
style.appendChild(document.createTextNode(cssData));
|
||||
|
|
Loading…
Reference in a new issue