Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
use strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Beelink committed Nov 9, 2019
1 parent 054fd6a commit ebfd009
Show file tree
Hide file tree
Showing 24 changed files with 46 additions and 10 deletions.
2 changes: 2 additions & 0 deletions js/about.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

/*
##### ###### #### # # # ##### ######
# # # # # # # # # # #
Expand Down
2 changes: 2 additions & 0 deletions js/browser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

/*
##### ###### #### # # # ##### ######
# # # # # # # # # # #
Expand Down
2 changes: 2 additions & 0 deletions js/overlay.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

/*
#### #### # # #### #####
# # # # ## # # #
Expand Down
2 changes: 2 additions & 0 deletions js/settings.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

/*
##### ###### #### # # # ##### ######
# # # # # # # # # # #
Expand Down
2 changes: 2 additions & 0 deletions js/webview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const { ipcRenderer } = require("electron");

document.addEventListener("wheel", webviewMouseWheel);
Expand Down
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

/*
##### ###### #### # # # ##### ######
# # # # # # # # # # #
Expand Down
2 changes: 2 additions & 0 deletions modules/BookmarkManager/Bookmark.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const EventEmitter = require("events");
const { ipcRenderer, clipboard } = require("electron");
const GetAvColor = require("color.js");
Expand Down
2 changes: 2 additions & 0 deletions modules/BookmarkManager/BookmarkManager.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const EventEmitter = require("events");
const Isotope = require("isotope-layout");
const Dragula = require("dragula");
Expand Down
2 changes: 2 additions & 0 deletions modules/BookmarkManager/Folder.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const EventEmitter = require("events");

class Folder extends EventEmitter {
Expand Down
2 changes: 2 additions & 0 deletions modules/DownloadManager/Download.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const EventEmitter = require("events");
const fileExtension = require("file-extension");
const GetAvColor = require("color.js");
Expand Down
4 changes: 1 addition & 3 deletions modules/DownloadManager/DownloadManager.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
if (!document) {
throw Error("DownloadManager module must be called in renderer process");
}
"use strict";

const EventEmitter = require("events");
const ppath = require("persist-path")("Ferny");
Expand Down
2 changes: 2 additions & 0 deletions modules/HistoryManager/HistoryItem.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const EventEmitter = require("events");
const jquery = require("jquery");
const GetAvColor = require("color.js");
Expand Down
2 changes: 2 additions & 0 deletions modules/HistoryManager/HistoryManager.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const EventEmitter = require("events");
const prependFile = require("prepend-file");
const ppath = require("persist-path")("Ferny");
Expand Down
4 changes: 1 addition & 3 deletions modules/NotificationManager/NotificationManager.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
if (!document) {
throw Error("NotificationManager module must be called in renderer process");
}
"use strict";

const EventEmitter = require("events");

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const EventEmitter = require("events");

class BlankNotification extends EventEmitter {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const rgbToRgbaString = require(__dirname + "/../../rgbToRgbaString.js");

const TextNotification = require(__dirname + "/TextNotification.js");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const rgbToRgbaString = require(__dirname + "/../../rgbToRgbaString.js");

const TextNotification = require(__dirname + "/TextNotification.js");
Expand Down
2 changes: 2 additions & 0 deletions modules/NotificationManager/Notifications/TextNotification.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const BlankNotification = require(__dirname + "/BlankNotification.js");

class TextNotification extends BlankNotification {
Expand Down
2 changes: 2 additions & 0 deletions modules/NotificationManager/Notifications/ZoomNotification.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const rgbToRgbaString = require(__dirname + "/../../rgbToRgbaString.js");

const TextNotification = require(__dirname + "/TextNotification.js");
Expand Down
4 changes: 3 additions & 1 deletion modules/Overlay/Overlay.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use strict";

const EventEmitter = require("events");
const { BrowserView, Menu, MenuItem, clipboard } = require('electron');
const { BrowserView, Menu, MenuItem, clipboard } = require("electron");

class Overlay extends EventEmitter {
window = null;
Expand Down
2 changes: 2 additions & 0 deletions modules/SearchManager/SearchManager.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

/*
#### #### # # #### #####
# # # # ## # # #
Expand Down
2 changes: 2 additions & 0 deletions modules/TabManager/Tab.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const EventEmitter = require("events");
const { BrowserView, Menu, MenuItem, clipboard } = require("electron");
const fileExtension = require("file-extension");
Expand Down
2 changes: 2 additions & 0 deletions modules/TabManager/TabManager.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const EventEmitter = require("events");
const { Menu, MenuItem } = require('electron');

Expand Down
4 changes: 1 addition & 3 deletions modules/TabManager/TabRenderer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
if (!document) {
throw Error("TabRenderer module must be called in renderer process");
}
"use strict";

const EventEmitter = require("events");
const { ipcRenderer } = require("electron");
Expand Down

0 comments on commit ebfd009

Please sign in to comment.